callman-mcp 0.2.0 → 0.4.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +4 -4
  3. package/dist/client/api.d.ts +16 -1
  4. package/dist/client/api.d.ts.map +1 -1
  5. package/dist/client/api.js +22 -0
  6. package/dist/client/api.js.map +1 -1
  7. package/dist/client/types.d.ts +14 -0
  8. package/dist/client/types.d.ts.map +1 -1
  9. package/dist/domain/diagram/build.d.ts +122 -73
  10. package/dist/domain/diagram/build.d.ts.map +1 -1
  11. package/dist/domain/diagram/build.js +51 -167
  12. package/dist/domain/diagram/build.js.map +1 -1
  13. package/dist/domain/diagram/layout.d.ts +5 -4
  14. package/dist/domain/diagram/layout.d.ts.map +1 -1
  15. package/dist/domain/diagram/layout.js +18 -45
  16. package/dist/domain/diagram/layout.js.map +1 -1
  17. package/dist/domain/diagram/patch.d.ts +1011 -92
  18. package/dist/domain/diagram/patch.d.ts.map +1 -1
  19. package/dist/domain/diagram/patch.js +113 -273
  20. package/dist/domain/diagram/patch.js.map +1 -1
  21. package/dist/domain/diagram/style.d.ts +4 -12
  22. package/dist/domain/diagram/style.d.ts.map +1 -1
  23. package/dist/domain/diagram/style.js +8 -84
  24. package/dist/domain/diagram/style.js.map +1 -1
  25. package/dist/domain/diagram/summarize.d.ts +26 -24
  26. package/dist/domain/diagram/summarize.d.ts.map +1 -1
  27. package/dist/domain/diagram/summarize.js +21 -35
  28. package/dist/domain/diagram/summarize.js.map +1 -1
  29. package/dist/domain/requestIntegrations.d.ts +20 -20
  30. package/dist/domain/requestShape.d.ts +32 -32
  31. package/dist/resources/docs/diagramSchema.d.ts +1 -1
  32. package/dist/resources/docs/diagramSchema.d.ts.map +1 -1
  33. package/dist/resources/docs/diagramSchema.js +87 -10
  34. package/dist/resources/docs/diagramSchema.js.map +1 -1
  35. package/dist/resources/docs/overview.d.ts +1 -1
  36. package/dist/resources/docs/overview.d.ts.map +1 -1
  37. package/dist/resources/docs/overview.js +4 -1
  38. package/dist/resources/docs/overview.js.map +1 -1
  39. package/dist/resources/generated/aiPacks.d.ts +1 -1
  40. package/dist/resources/generated/aiPacks.js +2 -2
  41. package/dist/tools/catalog.d.ts.map +1 -1
  42. package/dist/tools/catalog.js +5 -0
  43. package/dist/tools/catalog.js.map +1 -1
  44. package/dist/tools/diagrams.d.ts.map +1 -1
  45. package/dist/tools/diagrams.js +547 -59
  46. package/dist/tools/diagrams.js.map +1 -1
  47. package/dist/tools/lookups.d.ts +5 -1
  48. package/dist/tools/lookups.d.ts.map +1 -1
  49. package/dist/tools/lookups.js +41 -0
  50. package/dist/tools/lookups.js.map +1 -1
  51. package/dist-cjs/client/api.js +22 -0
  52. package/dist-cjs/domain/diagram/build.js +55 -171
  53. package/dist-cjs/domain/diagram/layout.js +19 -45
  54. package/dist-cjs/domain/diagram/patch.js +111 -271
  55. package/dist-cjs/domain/diagram/style.js +11 -88
  56. package/dist-cjs/domain/diagram/summarize.js +23 -35
  57. package/dist-cjs/resources/docs/diagramSchema.js +87 -10
  58. package/dist-cjs/resources/docs/overview.js +4 -1
  59. package/dist-cjs/resources/generated/aiPacks.js +2 -2
  60. package/dist-cjs/tools/catalog.js +5 -0
  61. package/dist-cjs/tools/diagrams.js +539 -51
  62. package/dist-cjs/tools/lookups.js +46 -1
  63. package/package.json +2 -2
@@ -1,7 +1,8 @@
1
- import { type DiagramDocument, type DiagramEdge, type EdgeSemantic } from "callman-core";
1
+ import { containerTypes, edgeStyleFor, isContainerType, parentWarning, suggestComponentTypes, type DiagramDocument } from "callman-core";
2
2
  import { z } from "zod";
3
- import { toTokenRef } from "./style.js";
4
3
  export declare const EDGE_SEMANTICS_INPUT: readonly ["sync", "async", "fallback", "bus"];
4
+ export declare const ROUTINGS: readonly ["orthogonal", "straight", "curved", "smart"];
5
+ export declare const SIDES: readonly ["top", "right", "bottom", "left"];
5
6
  export declare const diagramNodeInputSchema: z.ZodObject<{
6
7
  id: z.ZodOptional<z.ZodString>;
7
8
  type: z.ZodString;
@@ -145,6 +146,7 @@ export declare const diagramNodeInputSchema: z.ZodObject<{
145
146
  rotation: z.ZodOptional<z.ZodNumber>;
146
147
  locked: z.ZodOptional<z.ZodBoolean>;
147
148
  hidden: z.ZodOptional<z.ZodBoolean>;
149
+ collapsed: z.ZodOptional<z.ZodBoolean>;
148
150
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
151
  }, "strict", z.ZodTypeAny, {
150
152
  type: string;
@@ -155,6 +157,11 @@ export declare const diagramNodeInputSchema: z.ZodObject<{
155
157
  width: number;
156
158
  height: number;
157
159
  } | undefined;
160
+ label?: string | undefined;
161
+ position?: {
162
+ x: number;
163
+ y: number;
164
+ } | undefined;
158
165
  style?: {
159
166
  fill?: string | {
160
167
  raw: string;
@@ -189,11 +196,7 @@ export declare const diagramNodeInputSchema: z.ZodObject<{
189
196
  rotation?: number | undefined;
190
197
  locked?: boolean | undefined;
191
198
  hidden?: boolean | undefined;
192
- label?: string | undefined;
193
- position?: {
194
- x: number;
195
- y: number;
196
- } | undefined;
199
+ collapsed?: boolean | undefined;
197
200
  }, {
198
201
  type: string;
199
202
  data?: Record<string, unknown> | undefined;
@@ -203,6 +206,11 @@ export declare const diagramNodeInputSchema: z.ZodObject<{
203
206
  width: number;
204
207
  height: number;
205
208
  } | undefined;
209
+ label?: string | undefined;
210
+ position?: {
211
+ x: number;
212
+ y: number;
213
+ } | undefined;
206
214
  style?: {
207
215
  fill?: string | {
208
216
  raw: string;
@@ -237,11 +245,7 @@ export declare const diagramNodeInputSchema: z.ZodObject<{
237
245
  rotation?: number | undefined;
238
246
  locked?: boolean | undefined;
239
247
  hidden?: boolean | undefined;
240
- label?: string | undefined;
241
- position?: {
242
- x: number;
243
- y: number;
244
- } | undefined;
248
+ collapsed?: boolean | undefined;
245
249
  }>;
246
250
  export declare const diagramEdgeInputSchema: z.ZodObject<{
247
251
  id: z.ZodOptional<z.ZodString>;
@@ -262,38 +266,60 @@ export declare const diagramEdgeInputSchema: z.ZodObject<{
262
266
  }, {
263
267
  token: string;
264
268
  }>]>>;
265
- routing: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved"]>>;
266
- markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
267
- markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
269
+ routing: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved", "smart"]>>;
270
+ markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval", "one", "many", "zeroOne", "zeroMany"]>>;
271
+ markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval", "one", "many", "zeroOne", "zeroMany"]>>;
272
+ sourceSide: z.ZodOptional<z.ZodEnum<["top", "right", "bottom", "left"]>>;
273
+ targetSide: z.ZodOptional<z.ZodEnum<["top", "right", "bottom", "left"]>>;
274
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
268
275
  }, "strict", z.ZodTypeAny, {
269
276
  source: string;
270
277
  target: string;
278
+ data?: Record<string, unknown> | undefined;
271
279
  id?: string | undefined;
280
+ label?: string | undefined;
281
+ semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
272
282
  color?: string | {
273
283
  raw: string;
274
284
  } | {
275
285
  token: string;
276
286
  } | undefined;
277
- markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
278
- label?: string | undefined;
279
- semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
280
- routing?: "orthogonal" | "straight" | "curved" | undefined;
281
- markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
287
+ routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
288
+ markerEnd?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
289
+ markerStart?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
290
+ sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
291
+ targetSide?: "left" | "right" | "top" | "bottom" | undefined;
282
292
  }, {
283
293
  source: string;
284
294
  target: string;
295
+ data?: Record<string, unknown> | undefined;
285
296
  id?: string | undefined;
297
+ label?: string | undefined;
298
+ semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
286
299
  color?: string | {
287
300
  raw: string;
288
301
  } | {
289
302
  token: string;
290
303
  } | undefined;
291
- markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
292
- label?: string | undefined;
293
- semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
294
- routing?: "orthogonal" | "straight" | "curved" | undefined;
295
- markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
304
+ routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
305
+ markerEnd?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
306
+ markerStart?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
307
+ sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
308
+ targetSide?: "left" | "right" | "top" | "bottom" | undefined;
296
309
  }>;
310
+ export declare const diagramCanvasInputSchema: z.ZodOptional<z.ZodObject<{
311
+ background: z.ZodOptional<z.ZodEnum<["grid", "dots", "blank"]>>;
312
+ gridSize: z.ZodOptional<z.ZodNumber>;
313
+ defaultRouting: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved", "smart"]>>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ background?: "grid" | "dots" | "blank" | undefined;
316
+ gridSize?: number | undefined;
317
+ defaultRouting?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
318
+ }, {
319
+ background?: "grid" | "dots" | "blank" | undefined;
320
+ gridSize?: number | undefined;
321
+ defaultRouting?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
322
+ }>>;
297
323
  export declare const diagramInputSchema: z.ZodObject<{
298
324
  title: z.ZodString;
299
325
  nodes: z.ZodArray<z.ZodObject<{
@@ -439,6 +465,7 @@ export declare const diagramInputSchema: z.ZodObject<{
439
465
  rotation: z.ZodOptional<z.ZodNumber>;
440
466
  locked: z.ZodOptional<z.ZodBoolean>;
441
467
  hidden: z.ZodOptional<z.ZodBoolean>;
468
+ collapsed: z.ZodOptional<z.ZodBoolean>;
442
469
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
443
470
  }, "strict", z.ZodTypeAny, {
444
471
  type: string;
@@ -449,6 +476,11 @@ export declare const diagramInputSchema: z.ZodObject<{
449
476
  width: number;
450
477
  height: number;
451
478
  } | undefined;
479
+ label?: string | undefined;
480
+ position?: {
481
+ x: number;
482
+ y: number;
483
+ } | undefined;
452
484
  style?: {
453
485
  fill?: string | {
454
486
  raw: string;
@@ -483,11 +515,7 @@ export declare const diagramInputSchema: z.ZodObject<{
483
515
  rotation?: number | undefined;
484
516
  locked?: boolean | undefined;
485
517
  hidden?: boolean | undefined;
486
- label?: string | undefined;
487
- position?: {
488
- x: number;
489
- y: number;
490
- } | undefined;
518
+ collapsed?: boolean | undefined;
491
519
  }, {
492
520
  type: string;
493
521
  data?: Record<string, unknown> | undefined;
@@ -497,6 +525,11 @@ export declare const diagramInputSchema: z.ZodObject<{
497
525
  width: number;
498
526
  height: number;
499
527
  } | undefined;
528
+ label?: string | undefined;
529
+ position?: {
530
+ x: number;
531
+ y: number;
532
+ } | undefined;
500
533
  style?: {
501
534
  fill?: string | {
502
535
  raw: string;
@@ -531,11 +564,7 @@ export declare const diagramInputSchema: z.ZodObject<{
531
564
  rotation?: number | undefined;
532
565
  locked?: boolean | undefined;
533
566
  hidden?: boolean | undefined;
534
- label?: string | undefined;
535
- position?: {
536
- x: number;
537
- y: number;
538
- } | undefined;
567
+ collapsed?: boolean | undefined;
539
568
  }>, "many">;
540
569
  edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
541
570
  id: z.ZodOptional<z.ZodString>;
@@ -556,47 +585,59 @@ export declare const diagramInputSchema: z.ZodObject<{
556
585
  }, {
557
586
  token: string;
558
587
  }>]>>;
559
- routing: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved"]>>;
560
- markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
561
- markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
588
+ routing: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved", "smart"]>>;
589
+ markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval", "one", "many", "zeroOne", "zeroMany"]>>;
590
+ markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval", "one", "many", "zeroOne", "zeroMany"]>>;
591
+ sourceSide: z.ZodOptional<z.ZodEnum<["top", "right", "bottom", "left"]>>;
592
+ targetSide: z.ZodOptional<z.ZodEnum<["top", "right", "bottom", "left"]>>;
593
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
562
594
  }, "strict", z.ZodTypeAny, {
563
595
  source: string;
564
596
  target: string;
597
+ data?: Record<string, unknown> | undefined;
565
598
  id?: string | undefined;
599
+ label?: string | undefined;
600
+ semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
566
601
  color?: string | {
567
602
  raw: string;
568
603
  } | {
569
604
  token: string;
570
605
  } | undefined;
571
- markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
572
- label?: string | undefined;
573
- semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
574
- routing?: "orthogonal" | "straight" | "curved" | undefined;
575
- markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
606
+ routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
607
+ markerEnd?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
608
+ markerStart?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
609
+ sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
610
+ targetSide?: "left" | "right" | "top" | "bottom" | undefined;
576
611
  }, {
577
612
  source: string;
578
613
  target: string;
614
+ data?: Record<string, unknown> | undefined;
579
615
  id?: string | undefined;
616
+ label?: string | undefined;
617
+ semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
580
618
  color?: string | {
581
619
  raw: string;
582
620
  } | {
583
621
  token: string;
584
622
  } | undefined;
585
- markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
586
- label?: string | undefined;
587
- semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
588
- routing?: "orthogonal" | "straight" | "curved" | undefined;
589
- markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
623
+ routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
624
+ markerEnd?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
625
+ markerStart?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
626
+ sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
627
+ targetSide?: "left" | "right" | "top" | "bottom" | undefined;
590
628
  }>, "many">>;
591
629
  canvas: z.ZodOptional<z.ZodObject<{
592
630
  background: z.ZodOptional<z.ZodEnum<["grid", "dots", "blank"]>>;
593
631
  gridSize: z.ZodOptional<z.ZodNumber>;
632
+ defaultRouting: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved", "smart"]>>;
594
633
  }, "strict", z.ZodTypeAny, {
595
634
  background?: "grid" | "dots" | "blank" | undefined;
596
635
  gridSize?: number | undefined;
636
+ defaultRouting?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
597
637
  }, {
598
638
  background?: "grid" | "dots" | "blank" | undefined;
599
639
  gridSize?: number | undefined;
640
+ defaultRouting?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
600
641
  }>>;
601
642
  }, "strip", z.ZodTypeAny, {
602
643
  title: string;
@@ -609,6 +650,11 @@ export declare const diagramInputSchema: z.ZodObject<{
609
650
  width: number;
610
651
  height: number;
611
652
  } | undefined;
653
+ label?: string | undefined;
654
+ position?: {
655
+ x: number;
656
+ y: number;
657
+ } | undefined;
612
658
  style?: {
613
659
  fill?: string | {
614
660
  raw: string;
@@ -643,30 +689,30 @@ export declare const diagramInputSchema: z.ZodObject<{
643
689
  rotation?: number | undefined;
644
690
  locked?: boolean | undefined;
645
691
  hidden?: boolean | undefined;
646
- label?: string | undefined;
647
- position?: {
648
- x: number;
649
- y: number;
650
- } | undefined;
692
+ collapsed?: boolean | undefined;
651
693
  }[];
652
694
  edges: {
653
695
  source: string;
654
696
  target: string;
697
+ data?: Record<string, unknown> | undefined;
655
698
  id?: string | undefined;
699
+ label?: string | undefined;
700
+ semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
656
701
  color?: string | {
657
702
  raw: string;
658
703
  } | {
659
704
  token: string;
660
705
  } | undefined;
661
- markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
662
- label?: string | undefined;
663
- semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
664
- routing?: "orthogonal" | "straight" | "curved" | undefined;
665
- markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
706
+ routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
707
+ markerEnd?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
708
+ markerStart?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
709
+ sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
710
+ targetSide?: "left" | "right" | "top" | "bottom" | undefined;
666
711
  }[];
667
712
  canvas?: {
668
713
  background?: "grid" | "dots" | "blank" | undefined;
669
714
  gridSize?: number | undefined;
715
+ defaultRouting?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
670
716
  } | undefined;
671
717
  }, {
672
718
  title: string;
@@ -679,6 +725,11 @@ export declare const diagramInputSchema: z.ZodObject<{
679
725
  width: number;
680
726
  height: number;
681
727
  } | undefined;
728
+ label?: string | undefined;
729
+ position?: {
730
+ x: number;
731
+ y: number;
732
+ } | undefined;
682
733
  style?: {
683
734
  fill?: string | {
684
735
  raw: string;
@@ -713,30 +764,30 @@ export declare const diagramInputSchema: z.ZodObject<{
713
764
  rotation?: number | undefined;
714
765
  locked?: boolean | undefined;
715
766
  hidden?: boolean | undefined;
716
- label?: string | undefined;
717
- position?: {
718
- x: number;
719
- y: number;
720
- } | undefined;
767
+ collapsed?: boolean | undefined;
721
768
  }[];
722
769
  edges?: {
723
770
  source: string;
724
771
  target: string;
772
+ data?: Record<string, unknown> | undefined;
725
773
  id?: string | undefined;
774
+ label?: string | undefined;
775
+ semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
726
776
  color?: string | {
727
777
  raw: string;
728
778
  } | {
729
779
  token: string;
730
780
  } | undefined;
731
- markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
732
- label?: string | undefined;
733
- semantic?: "sync" | "async" | "fallback" | "bus" | undefined;
734
- routing?: "orthogonal" | "straight" | "curved" | undefined;
735
- markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
781
+ routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
782
+ markerEnd?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
783
+ markerStart?: "none" | "many" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | "one" | "zeroOne" | "zeroMany" | undefined;
784
+ sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
785
+ targetSide?: "left" | "right" | "top" | "bottom" | undefined;
736
786
  }[] | undefined;
737
787
  canvas?: {
738
788
  background?: "grid" | "dots" | "blank" | undefined;
739
789
  gridSize?: number | undefined;
790
+ defaultRouting?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
740
791
  } | undefined;
741
792
  }>;
742
793
  export type DiagramInput = z.infer<typeof diagramInputSchema>;
@@ -746,17 +797,15 @@ export interface BuildDiagramOptions {
746
797
  strictTypes?: boolean;
747
798
  existingId?: string;
748
799
  createdAt?: string;
800
+ kind?: "canvas" | "bpmn" | "database";
749
801
  }
750
802
  export interface BuildDiagramResult {
751
803
  document: DiagramDocument;
752
804
  warnings: string[];
753
805
  unpositionedNodeIds: string[];
754
806
  }
755
- export declare const suggestComponentTypes: (type: string, limit?: number) => string[];
756
- export declare const isContainerType: (type: string | undefined) => boolean;
757
- export declare const containerTypes: () => string[];
758
- export declare const parentWarning: (id: string, parentId: string, parentType: string | undefined) => string | null;
807
+ export declare const toToolError: (error: unknown) => never;
808
+ export { containerTypes, edgeStyleFor, isContainerType, parentWarning, suggestComponentTypes };
759
809
  export declare const assertNotConnector: (type: string, id: string) => void;
760
- export declare const edgeStyleFor: (semantic: EdgeSemantic | undefined, color: Parameters<typeof toTokenRef>[0] | undefined) => DiagramEdge["style"];
761
810
  export declare const buildDiagramDocument: (input: DiagramInput, options?: BuildDiagramOptions) => BuildDiagramResult;
762
811
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/domain/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