schematex 0.4.1 → 0.4.2

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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWCAADEXJ_cjs = require('../chunk-WCAADEXJ.cjs');
3
+ var chunkZ5UECSNM_cjs = require('../chunk-Z5UECSNM.cjs');
4
4
  require('../chunk-DHHVYSQX.cjs');
5
5
  require('../chunk-QUKVGHN4.cjs');
6
6
  require('../chunk-2Z543TC3.cjs');
@@ -29,7 +29,7 @@ var schematexTools = {
29
29
  listDiagrams: ai.tool({
30
30
  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.",
31
31
  inputSchema: zod.z.object({}),
32
- execute: async () => chunkWCAADEXJ_cjs.listDiagrams()
32
+ execute: async () => chunkZ5UECSNM_cjs.listDiagrams()
33
33
  }),
34
34
  getSyntax: ai.tool({
35
35
  description: "Return a compact syntax reference for one diagram type \u2014 rules, grammar (EBNF), and inline examples. Trimmed for LLM consumption (~2,000\u20134,000 tokens). Call after listDiagrams once you've chosen a type.",
@@ -38,7 +38,7 @@ var schematexTools = {
38
38
  "Diagram type id from listDiagrams (e.g. 'genogram', 'sld', 'fishbone')."
39
39
  )
40
40
  }),
41
- execute: async ({ type }) => chunkWCAADEXJ_cjs.getSyntax(type)
41
+ execute: async ({ type }) => chunkZ5UECSNM_cjs.getSyntax(type)
42
42
  }),
43
43
  getExamples: ai.tool({
44
44
  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.",
@@ -48,7 +48,7 @@ var schematexTools = {
48
48
  preferFeatured: zod.z.boolean().optional().describe("Rank featured examples first."),
49
49
  maxComplexity: zod.z.number().int().min(1).max(5).optional().describe("Only return examples with complexity <= this value (1=simplest).")
50
50
  }),
51
- execute: async (args) => chunkWCAADEXJ_cjs.getExamples(args.type, {
51
+ execute: async (args) => chunkZ5UECSNM_cjs.getExamples(args.type, {
52
52
  limit: args.limit,
53
53
  preferFeatured: args.preferFeatured,
54
54
  maxComplexity: args.maxComplexity
@@ -62,7 +62,7 @@ var schematexTools = {
62
62
  ),
63
63
  dsl: zod.z.string().describe("The DSL source text to validate.")
64
64
  }),
65
- execute: async ({ type, dsl }) => chunkWCAADEXJ_cjs.validateDsl(type, dsl)
65
+ execute: async ({ type, dsl }) => chunkZ5UECSNM_cjs.validateDsl(type, dsl)
66
66
  }),
67
67
  renderDsl: ai.tool({
68
68
  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.",
@@ -77,7 +77,7 @@ var schematexTools = {
77
77
  dsl,
78
78
  theme,
79
79
  padding
80
- }) => chunkWCAADEXJ_cjs.renderDsl(type, dsl, { theme, padding })
80
+ }) => chunkZ5UECSNM_cjs.renderDsl(type, dsl, { theme, padding })
81
81
  })
82
82
  };
83
83
 
package/dist/ai/ai-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-4SJSIJK2.js';
1
+ import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-YTLGK5BZ.js';
2
2
  import '../chunk-Z5NGIM4Z.js';
3
3
  import '../chunk-I55HO32M.js';
4
4
  import '../chunk-J7JWMQD5.js';
package/dist/ai/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWCAADEXJ_cjs = require('../chunk-WCAADEXJ.cjs');
3
+ var chunkZ5UECSNM_cjs = require('../chunk-Z5UECSNM.cjs');
4
4
  require('../chunk-DHHVYSQX.cjs');
5
5
  require('../chunk-QUKVGHN4.cjs');
6
6
  require('../chunk-2Z543TC3.cjs');
@@ -27,35 +27,35 @@ require('../chunk-3WNW5Y7P.cjs');
27
27
 
28
28
  Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
29
29
  enumerable: true,
30
- get: function () { return chunkWCAADEXJ_cjs.DIAGRAM_REGISTRY; }
30
+ get: function () { return chunkZ5UECSNM_cjs.DIAGRAM_REGISTRY; }
31
31
  });
32
32
  Object.defineProperty(exports, "getAllDiagramTypes", {
33
33
  enumerable: true,
34
- get: function () { return chunkWCAADEXJ_cjs.getAllDiagramTypes; }
34
+ get: function () { return chunkZ5UECSNM_cjs.getAllDiagramTypes; }
35
35
  });
36
36
  Object.defineProperty(exports, "getDiagramMeta", {
37
37
  enumerable: true,
38
- get: function () { return chunkWCAADEXJ_cjs.getDiagramMeta; }
38
+ get: function () { return chunkZ5UECSNM_cjs.getDiagramMeta; }
39
39
  });
40
40
  Object.defineProperty(exports, "getExamples", {
41
41
  enumerable: true,
42
- get: function () { return chunkWCAADEXJ_cjs.getExamples; }
42
+ get: function () { return chunkZ5UECSNM_cjs.getExamples; }
43
43
  });
44
44
  Object.defineProperty(exports, "getSyntax", {
45
45
  enumerable: true,
46
- get: function () { return chunkWCAADEXJ_cjs.getSyntax; }
46
+ get: function () { return chunkZ5UECSNM_cjs.getSyntax; }
47
47
  });
48
48
  Object.defineProperty(exports, "listDiagrams", {
49
49
  enumerable: true,
50
- get: function () { return chunkWCAADEXJ_cjs.listDiagrams; }
50
+ get: function () { return chunkZ5UECSNM_cjs.listDiagrams; }
51
51
  });
52
52
  Object.defineProperty(exports, "renderDsl", {
53
53
  enumerable: true,
54
- get: function () { return chunkWCAADEXJ_cjs.renderDsl; }
54
+ get: function () { return chunkZ5UECSNM_cjs.renderDsl; }
55
55
  });
56
56
  Object.defineProperty(exports, "validateDsl", {
57
57
  enumerable: true,
58
- get: function () { return chunkWCAADEXJ_cjs.validateDsl; }
58
+ get: function () { return chunkZ5UECSNM_cjs.validateDsl; }
59
59
  });
60
60
  //# sourceMappingURL=index.cjs.map
61
61
  //# sourceMappingURL=index.cjs.map
package/dist/ai/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { DIAGRAM_REGISTRY, getAllDiagramTypes, getDiagramMeta, getExamples, getSyntax, listDiagrams, renderDsl, validateDsl } from '../chunk-4SJSIJK2.js';
1
+ export { DIAGRAM_REGISTRY, getAllDiagramTypes, getDiagramMeta, getExamples, getSyntax, listDiagrams, renderDsl, validateDsl } from '../chunk-YTLGK5BZ.js';
2
2
  import '../chunk-Z5NGIM4Z.js';
3
3
  import '../chunk-I55HO32M.js';
4
4
  import '../chunk-J7JWMQD5.js';