schematex 0.6.9 → 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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk25TO5A4F_cjs = require('../chunk-25TO5A4F.cjs');
4
- require('../chunk-5IZL57YJ.cjs');
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-BL57NQKN.cjs');
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 () => chunk25TO5A4F_cjs.listDiagrams()
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
- }) => chunk25TO5A4F_cjs.getSyntax(type, { detail })
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) => chunk25TO5A4F_cjs.getExamples(args.type, {
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 }) => chunk25TO5A4F_cjs.validateDsl(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
- }) => chunk25TO5A4F_cjs.renderDsl(type, dsl, { theme, padding })
88
+ }) => chunkCTMJ3XP2_cjs.renderDsl(type, dsl, { theme, padding })
89
89
  })
90
90
  };
91
91
 
package/dist/ai/ai-sdk.js CHANGED
@@ -1,5 +1,5 @@
1
- import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-Q5V4LUQR.js';
2
- import '../chunk-3DPWFWQU.js';
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-HL5PS6MG.js';
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 chunk25TO5A4F_cjs = require('../chunk-25TO5A4F.cjs');
4
- require('../chunk-5IZL57YJ.cjs');
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-BL57NQKN.cjs');
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 chunk25TO5A4F_cjs.DIAGRAM_REGISTRY; }
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 chunk25TO5A4F_cjs.DIAGRAM_SINCE; }
36
+ get: function () { return chunkCTMJ3XP2_cjs.DIAGRAM_SINCE; }
37
37
  });
38
38
  Object.defineProperty(exports, "getAllDiagramTypes", {
39
39
  enumerable: true,
40
- get: function () { return chunk25TO5A4F_cjs.getAllDiagramTypes; }
40
+ get: function () { return chunkCTMJ3XP2_cjs.getAllDiagramTypes; }
41
41
  });
42
42
  Object.defineProperty(exports, "getDiagramMeta", {
43
43
  enumerable: true,
44
- get: function () { return chunk25TO5A4F_cjs.getDiagramMeta; }
44
+ get: function () { return chunkCTMJ3XP2_cjs.getDiagramMeta; }
45
45
  });
46
46
  Object.defineProperty(exports, "getDiagramSince", {
47
47
  enumerable: true,
48
- get: function () { return chunk25TO5A4F_cjs.getDiagramSince; }
48
+ get: function () { return chunkCTMJ3XP2_cjs.getDiagramSince; }
49
49
  });
50
50
  Object.defineProperty(exports, "getExamples", {
51
51
  enumerable: true,
52
- get: function () { return chunk25TO5A4F_cjs.getExamples; }
52
+ get: function () { return chunkCTMJ3XP2_cjs.getExamples; }
53
53
  });
54
54
  Object.defineProperty(exports, "getSyntax", {
55
55
  enumerable: true,
56
- get: function () { return chunk25TO5A4F_cjs.getSyntax; }
56
+ get: function () { return chunkCTMJ3XP2_cjs.getSyntax; }
57
57
  });
58
58
  Object.defineProperty(exports, "listDiagrams", {
59
59
  enumerable: true,
60
- get: function () { return chunk25TO5A4F_cjs.listDiagrams; }
60
+ get: function () { return chunkCTMJ3XP2_cjs.listDiagrams; }
61
61
  });
62
62
  Object.defineProperty(exports, "renderDsl", {
63
63
  enumerable: true,
64
- get: function () { return chunk25TO5A4F_cjs.renderDsl; }
64
+ get: function () { return chunkCTMJ3XP2_cjs.renderDsl; }
65
65
  });
66
66
  Object.defineProperty(exports, "resolveDiagramType", {
67
67
  enumerable: true,
68
- get: function () { return chunk25TO5A4F_cjs.resolveDiagramType; }
68
+ get: function () { return chunkCTMJ3XP2_cjs.resolveDiagramType; }
69
69
  });
70
70
  Object.defineProperty(exports, "validateDsl", {
71
71
  enumerable: true,
72
- get: function () { return chunk25TO5A4F_cjs.validateDsl; }
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-Q5V4LUQR.js';
2
- import '../chunk-3DPWFWQU.js';
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-HL5PS6MG.js';
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 chunk5IZL57YJ_cjs = require('./chunk-5IZL57YJ.cjs');
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-BL57NQKN.cjs');
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(chunk5IZL57YJ_cjs.render(text, config));
29
+ return svgStringToElement(chunkHFATQXFN_cjs.render(text, config));
30
30
  }
31
31
  function renderPreviewToElement(text, config) {
32
- return svgStringToElement(chunk5IZL57YJ_cjs.renderPreview(text, config));
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 = chunk5IZL57YJ_cjs.render(text, config);
45
+ container.innerHTML = chunkHFATQXFN_cjs.render(text, config);
46
46
  }
47
47
  function renderPreviewToContainer(text, container, config) {
48
- container.innerHTML = chunk5IZL57YJ_cjs.renderPreview(text, config);
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 chunk5IZL57YJ_cjs.render; }
53
+ get: function () { return chunkHFATQXFN_cjs.render; }
54
54
  });
55
55
  Object.defineProperty(exports, "renderPreview", {
56
56
  enumerable: true,
57
- get: function () { return chunk5IZL57YJ_cjs.renderPreview; }
57
+ get: function () { return chunkHFATQXFN_cjs.renderPreview; }
58
58
  });
59
59
  Object.defineProperty(exports, "renderResult", {
60
60
  enumerable: true,
61
- get: function () { return chunk5IZL57YJ_cjs.renderResult; }
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-3DPWFWQU.js';
2
- export { render, renderPreview, renderResult } from './chunk-3DPWFWQU.js';
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-HL5PS6MG.js';
16
+ import './chunk-EENA7KNU.js';
17
17
  import './chunk-OFKRELZK.js';
18
18
  import './chunk-FO7BLCEW.js';
19
19
  import './chunk-P26FCZP3.js';