schematex 0.6.10 → 0.7.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/ai/ai-sdk.cjs +8 -8
- package/dist/ai/ai-sdk.d.cts +1 -1
- package/dist/ai/ai-sdk.d.ts +1 -1
- package/dist/ai/ai-sdk.js +3 -3
- package/dist/ai/index.cjs +14 -14
- package/dist/ai/index.js +3 -3
- package/dist/browser.cjs +9 -9
- package/dist/browser.js +3 -3
- package/dist/{chunk-DZGA25O5.cjs → chunk-CTMJ3XP2.cjs} +156 -9
- package/dist/chunk-CTMJ3XP2.cjs.map +1 -0
- package/dist/{chunk-HL5PS6MG.js → chunk-EENA7KNU.js} +324 -27
- package/dist/chunk-EENA7KNU.js.map +1 -0
- package/dist/{chunk-3YRYBTLG.cjs → chunk-HFATQXFN.cjs} +1401 -148
- package/dist/chunk-HFATQXFN.cjs.map +1 -0
- package/dist/{chunk-6AWASOFO.js → chunk-IFNNV54X.js} +1400 -147
- package/dist/chunk-IFNNV54X.js.map +1 -0
- package/dist/{chunk-X4P4HKHP.js → chunk-IFXHIYZE.js} +154 -7
- package/dist/chunk-IFXHIYZE.js.map +1 -0
- package/dist/{chunk-BL57NQKN.cjs → chunk-JAYJ2G4R.cjs} +324 -27
- package/dist/chunk-JAYJ2G4R.cjs.map +1 -0
- package/dist/diagrams/phylo/index.cjs +6 -6
- package/dist/diagrams/phylo/index.d.cts +21 -0
- package/dist/diagrams/phylo/index.d.ts +21 -0
- package/dist/diagrams/phylo/index.js +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.js +3 -3
- package/dist/react.cjs +3 -3
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3YRYBTLG.cjs.map +0 -1
- package/dist/chunk-6AWASOFO.js.map +0 -1
- package/dist/chunk-BL57NQKN.cjs.map +0 -1
- package/dist/chunk-DZGA25O5.cjs.map +0 -1
- package/dist/chunk-HL5PS6MG.js.map +0 -1
- package/dist/chunk-X4P4HKHP.js.map +0 -1
package/dist/ai/ai-sdk.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkCTMJ3XP2_cjs = require('../chunk-CTMJ3XP2.cjs');
|
|
4
|
+
require('../chunk-HFATQXFN.cjs');
|
|
5
5
|
require('../chunk-UHPGWO77.cjs');
|
|
6
6
|
require('../chunk-J3EPFZPX.cjs');
|
|
7
7
|
require('../chunk-SHMG7BVF.cjs');
|
|
@@ -15,7 +15,7 @@ require('../chunk-NFZMNKOR.cjs');
|
|
|
15
15
|
require('../chunk-2SZJQVPN.cjs');
|
|
16
16
|
require('../chunk-KGOZBABH.cjs');
|
|
17
17
|
require('../chunk-3KRL2EGN.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-JAYJ2G4R.cjs');
|
|
19
19
|
require('../chunk-5FYPSIGD.cjs');
|
|
20
20
|
require('../chunk-5UCXMYE7.cjs');
|
|
21
21
|
require('../chunk-2F45Y2ON.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 () => chunkCTMJ3XP2_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
|
+
}) => chunkCTMJ3XP2_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) => chunkCTMJ3XP2_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 }) => chunkCTMJ3XP2_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
|
+
}) => chunkCTMJ3XP2_cjs.renderDsl(type, dsl, { theme, padding })
|
|
89
89
|
})
|
|
90
90
|
};
|
|
91
91
|
|
package/dist/ai/ai-sdk.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ 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;
|
package/dist/ai/ai-sdk.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ 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;
|
package/dist/ai/ai-sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-IFXHIYZE.js';
|
|
2
|
+
import '../chunk-IFNNV54X.js';
|
|
3
3
|
import '../chunk-MPCSWRZC.js';
|
|
4
4
|
import '../chunk-2TUZ3QJA.js';
|
|
5
5
|
import '../chunk-C7V57V6O.js';
|
|
@@ -13,7 +13,7 @@ import '../chunk-6NUAGU6O.js';
|
|
|
13
13
|
import '../chunk-K2D6VFLP.js';
|
|
14
14
|
import '../chunk-JN6FHUC6.js';
|
|
15
15
|
import '../chunk-2KTQ75LN.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-EENA7KNU.js';
|
|
17
17
|
import '../chunk-OFKRELZK.js';
|
|
18
18
|
import '../chunk-FO7BLCEW.js';
|
|
19
19
|
import '../chunk-P26FCZP3.js';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkCTMJ3XP2_cjs = require('../chunk-CTMJ3XP2.cjs');
|
|
4
|
+
require('../chunk-HFATQXFN.cjs');
|
|
5
5
|
require('../chunk-UHPGWO77.cjs');
|
|
6
6
|
require('../chunk-J3EPFZPX.cjs');
|
|
7
7
|
require('../chunk-SHMG7BVF.cjs');
|
|
@@ -15,7 +15,7 @@ require('../chunk-NFZMNKOR.cjs');
|
|
|
15
15
|
require('../chunk-2SZJQVPN.cjs');
|
|
16
16
|
require('../chunk-KGOZBABH.cjs');
|
|
17
17
|
require('../chunk-3KRL2EGN.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-JAYJ2G4R.cjs');
|
|
19
19
|
require('../chunk-5FYPSIGD.cjs');
|
|
20
20
|
require('../chunk-5UCXMYE7.cjs');
|
|
21
21
|
require('../chunk-2F45Y2ON.cjs');
|
|
@@ -29,47 +29,47 @@ require('../chunk-3WNW5Y7P.cjs');
|
|
|
29
29
|
|
|
30
30
|
Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkCTMJ3XP2_cjs.DIAGRAM_REGISTRY; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "DIAGRAM_SINCE", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkCTMJ3XP2_cjs.DIAGRAM_SINCE; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getAllDiagramTypes", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkCTMJ3XP2_cjs.getAllDiagramTypes; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "getDiagramMeta", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkCTMJ3XP2_cjs.getDiagramMeta; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "getDiagramSince", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkCTMJ3XP2_cjs.getDiagramSince; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "getExamples", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkCTMJ3XP2_cjs.getExamples; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "getSyntax", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkCTMJ3XP2_cjs.getSyntax; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "listDiagrams", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkCTMJ3XP2_cjs.listDiagrams; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "renderDsl", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkCTMJ3XP2_cjs.renderDsl; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "resolveDiagramType", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkCTMJ3XP2_cjs.resolveDiagramType; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "validateDsl", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkCTMJ3XP2_cjs.validateDsl; }
|
|
73
73
|
});
|
|
74
74
|
//# sourceMappingURL=index.cjs.map
|
|
75
75
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-IFXHIYZE.js';
|
|
2
|
+
import '../chunk-IFNNV54X.js';
|
|
3
3
|
import '../chunk-MPCSWRZC.js';
|
|
4
4
|
import '../chunk-2TUZ3QJA.js';
|
|
5
5
|
import '../chunk-C7V57V6O.js';
|
|
@@ -13,7 +13,7 @@ import '../chunk-6NUAGU6O.js';
|
|
|
13
13
|
import '../chunk-K2D6VFLP.js';
|
|
14
14
|
import '../chunk-JN6FHUC6.js';
|
|
15
15
|
import '../chunk-2KTQ75LN.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-EENA7KNU.js';
|
|
17
17
|
import '../chunk-OFKRELZK.js';
|
|
18
18
|
import '../chunk-FO7BLCEW.js';
|
|
19
19
|
import '../chunk-P26FCZP3.js';
|
package/dist/browser.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHFATQXFN_cjs = require('./chunk-HFATQXFN.cjs');
|
|
4
4
|
require('./chunk-UHPGWO77.cjs');
|
|
5
5
|
require('./chunk-J3EPFZPX.cjs');
|
|
6
6
|
require('./chunk-SHMG7BVF.cjs');
|
|
@@ -14,7 +14,7 @@ require('./chunk-NFZMNKOR.cjs');
|
|
|
14
14
|
require('./chunk-2SZJQVPN.cjs');
|
|
15
15
|
require('./chunk-KGOZBABH.cjs');
|
|
16
16
|
require('./chunk-3KRL2EGN.cjs');
|
|
17
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-JAYJ2G4R.cjs');
|
|
18
18
|
require('./chunk-5FYPSIGD.cjs');
|
|
19
19
|
require('./chunk-5UCXMYE7.cjs');
|
|
20
20
|
require('./chunk-2F45Y2ON.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(chunkHFATQXFN_cjs.render(text, config));
|
|
30
30
|
}
|
|
31
31
|
function renderPreviewToElement(text, config) {
|
|
32
|
-
return svgStringToElement(
|
|
32
|
+
return svgStringToElement(chunkHFATQXFN_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 = chunkHFATQXFN_cjs.render(text, config);
|
|
46
46
|
}
|
|
47
47
|
function renderPreviewToContainer(text, container, config) {
|
|
48
|
-
container.innerHTML =
|
|
48
|
+
container.innerHTML = chunkHFATQXFN_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 chunkHFATQXFN_cjs.render; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "renderPreview", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkHFATQXFN_cjs.renderPreview; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "renderResult", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkHFATQXFN_cjs.renderResult; }
|
|
62
62
|
});
|
|
63
63
|
exports.renderPreviewToContainer = renderPreviewToContainer;
|
|
64
64
|
exports.renderPreviewToElement = renderPreviewToElement;
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { render, renderPreview } from './chunk-
|
|
2
|
-
export { render, renderPreview, renderResult } from './chunk-
|
|
1
|
+
import { render, renderPreview } from './chunk-IFNNV54X.js';
|
|
2
|
+
export { render, renderPreview, renderResult } from './chunk-IFNNV54X.js';
|
|
3
3
|
import './chunk-MPCSWRZC.js';
|
|
4
4
|
import './chunk-2TUZ3QJA.js';
|
|
5
5
|
import './chunk-C7V57V6O.js';
|
|
@@ -13,7 +13,7 @@ import './chunk-6NUAGU6O.js';
|
|
|
13
13
|
import './chunk-K2D6VFLP.js';
|
|
14
14
|
import './chunk-JN6FHUC6.js';
|
|
15
15
|
import './chunk-2KTQ75LN.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-EENA7KNU.js';
|
|
17
17
|
import './chunk-OFKRELZK.js';
|
|
18
18
|
import './chunk-FO7BLCEW.js';
|
|
19
19
|
import './chunk-P26FCZP3.js';
|