likec4 1.59.4 → 1.60.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 (96) hide show
  1. package/__app__/codegen/react.mjs +6 -6
  2. package/__app__/codegen/webcomponent.mjs +147 -69
  3. package/__app__/src/aichat/index.mjs +10 -5
  4. package/__app__/src/chunks/AIChat.mjs +1134 -693
  5. package/__app__/src/chunks/LikeC4Styles.mjs +3995 -1779
  6. package/__app__/src/chunks/ProjectsOverview.mjs +624 -334
  7. package/__app__/src/chunks/es.mjs +515 -335
  8. package/__app__/src/chunks/hooks.mjs +578 -369
  9. package/__app__/src/chunks/libs/@floating-ui.mjs +2720 -1966
  10. package/__app__/src/chunks/libs/@mantine.mjs +13920 -10057
  11. package/__app__/src/chunks/libs/@tanstack-ai.mjs +2266 -1146
  12. package/__app__/src/chunks/libs/@tanstack.mjs +3152 -1926
  13. package/__app__/src/chunks/libs/@xstate/react.mjs +2924 -1468
  14. package/__app__/src/chunks/libs/@xyflow/react.mjs +6627 -4067
  15. package/__app__/src/chunks/libs/bezier-js.mjs +1312 -726
  16. package/__app__/src/chunks/libs/d3.mjs +3219 -1505
  17. package/__app__/src/chunks/libs/fast-equals.mjs +434 -210
  18. package/__app__/src/chunks/libs/framer.mjs +9251 -3846
  19. package/__app__/src/chunks/libs/nanostores.mjs +174 -0
  20. package/__app__/src/chunks/libs/zod.mjs +4591 -2363
  21. package/__app__/src/chunks/rolldown-runtime.mjs +39 -23
  22. package/__app__/src/chunks/styled-system.mjs +2279 -1951
  23. package/__app__/src/fonts.css +112 -1
  24. package/__app__/src/main.mjs +40817 -21840
  25. package/__app__/src/style.css +18488 -1
  26. package/config/schema.json +122 -97
  27. package/dist/app/render-view-client.css +1 -1
  28. package/dist/app/render-view-client.js +508 -334
  29. package/dist/chunks/enableServer.mjs +1 -1
  30. package/dist/chunks/filenames.mjs +11 -9
  31. package/dist/chunks/generate-likec4.mjs +5 -0
  32. package/dist/chunks/index.d.mts +243 -183
  33. package/dist/chunks/index2.d.mts +2865 -1977
  34. package/dist/chunks/libs/@chevrotain/gast.mjs +27 -1
  35. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +81 -9
  36. package/dist/chunks/libs/@chevrotain/types.d.mts +4 -1
  37. package/dist/chunks/libs/@logtape/logtape.mjs +5 -4
  38. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  39. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
  40. package/dist/chunks/libs/birpc.mjs +1 -1
  41. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  42. package/dist/chunks/libs/chevrotain.mjs +87 -35
  43. package/dist/chunks/libs/eventemitter3.mjs +1 -1
  44. package/dist/chunks/libs/json5.mjs +4 -4
  45. package/dist/chunks/libs/langium.d.mts +9038 -6193
  46. package/dist/chunks/libs/langium.mjs +16 -24
  47. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  48. package/dist/chunks/libs/p-limit.mjs +1 -0
  49. package/dist/chunks/libs/p-queue.mjs +1 -1
  50. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  51. package/dist/chunks/libs/pako.mjs +1 -1
  52. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  53. package/dist/chunks/libs/remeda.mjs +1 -1
  54. package/dist/chunks/libs/ufo.mjs +1 -1
  55. package/dist/chunks/libs/unstorage.mjs +1 -1
  56. package/dist/chunks/libs/which.mjs +1 -1
  57. package/dist/chunks/node.mjs +59 -58
  58. package/dist/chunks/rolldown-runtime.mjs +1 -1
  59. package/dist/chunks/sequence-view.mjs +1 -1
  60. package/dist/chunks/vite-plugin.mjs +45 -45
  61. package/dist/cli/index.mjs +207 -1315
  62. package/dist/config/index.d.mts +2 -2
  63. package/dist/generators/likec4.d.mts +6578 -0
  64. package/dist/generators/likec4.mjs +1 -0
  65. package/dist/model/index.d.mts +4 -1
  66. package/dist/vite-plugin/index.d.mts +4 -1
  67. package/dist/vite-plugin/index.mjs +1 -1
  68. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +9 -0
  69. package/dist/vite-plugin/internal/index.d.mts +6 -5
  70. package/dist/vite-plugin/internal/index.mjs +83 -30
  71. package/generators/likec4/package.json +4 -0
  72. package/package.json +113 -106
  73. package/react/index.d.mts +8500 -26659
  74. package/react/index.mjs +534 -63936
  75. package/react/rolldown-runtime-DnkiqaRY.js +1 -0
  76. package/skills/likec4-dsl/SKILL.md +428 -0
  77. package/skills/likec4-dsl/evals/evals-public.json +202 -0
  78. package/skills/likec4-dsl/evals/grading-spec.json +589 -0
  79. package/skills/likec4-dsl/references/bridge-leanix-drawio.md +42 -0
  80. package/skills/likec4-dsl/references/cli.md +139 -0
  81. package/skills/likec4-dsl/references/configuration.md +266 -0
  82. package/skills/likec4-dsl/references/deployment.md +160 -0
  83. package/skills/likec4-dsl/references/dynamic-views.md +455 -0
  84. package/skills/likec4-dsl/references/examples.md +370 -0
  85. package/skills/likec4-dsl/references/identifier-validity.md +90 -0
  86. package/skills/likec4-dsl/references/include-predicates-wildcards.md +179 -0
  87. package/skills/likec4-dsl/references/model.md +151 -0
  88. package/skills/likec4-dsl/references/predicates.md +123 -0
  89. package/skills/likec4-dsl/references/relationships-bidirectional.md +176 -0
  90. package/skills/likec4-dsl/references/specification.md +75 -0
  91. package/skills/likec4-dsl/references/style-tokens-colors.md +150 -0
  92. package/skills/likec4-dsl/references/troubleshooting.md +96 -0
  93. package/skills/likec4-dsl/references/views.md +329 -0
  94. package/dist/chunks/libs/picomatch.mjs +0 -1
  95. package/dist/chunks/libs/zod.d.mts +0 -3840
  96. package/dist/chunks/libs/zod.mjs +0 -65
@@ -1,102 +1,105 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "name": {
6
- "type": "string",
7
- "minLength": 1,
8
- "description": "Project name, must be unique in the workspace"
9
- },
10
- "extends": {
11
- "description": "Extend styles from other config files",
12
- "anyOf": [
13
- {
3
+ "$ref": "#/$defs/LikeC4ProjectConfig",
4
+ "$defs": {
5
+ "LikeC4ProjectConfig": {
6
+ "type": "object",
7
+ "properties": {
8
+ "name": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "description": "Project name, must be unique in the workspace"
12
+ },
13
+ "extends": {
14
+ "description": "Extend styles from other config files",
15
+ "anyOf": [
16
+ {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ {
21
+ "minItems": 1,
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "minLength": 1
26
+ }
27
+ }
28
+ ]
29
+ },
30
+ "title": {
31
+ "description": "A human readable title for the project",
14
32
  "type": "string",
15
33
  "minLength": 1
16
34
  },
17
- {
18
- "minItems": 1,
35
+ "contactPerson": {
36
+ "description": "A person who has been involved in creating or maintaining this project",
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "metadata": {
41
+ "description": "Arbitrary metadata as key-value pairs for custom project information",
42
+ "type": "object",
43
+ "propertyNames": {
44
+ "type": "string"
45
+ },
46
+ "additionalProperties": {}
47
+ },
48
+ "styles": {
49
+ "description": "Project styles customization",
50
+ "type": "object",
51
+ "properties": {
52
+ "theme": {
53
+ "description": "Project theme customization",
54
+ "$ref": "#/$defs/ThemeCustomization"
55
+ },
56
+ "defaults": {
57
+ "description": "Override default values for style properties\nThese values will be used if such property is not defined",
58
+ "$ref": "#/$defs/DefaultStyleValues"
59
+ },
60
+ "customCss": {
61
+ "description": "Custom CSS (or list of CSS files) to be included in the generated diagrams",
62
+ "$ref": "#/$defs/CustomStylesheets"
63
+ }
64
+ },
65
+ "additionalProperties": false
66
+ },
67
+ "imageAliases": {
68
+ "$ref": "#/$defs/ImageAliases"
69
+ },
70
+ "include": {
71
+ "$ref": "#/$defs/include-config"
72
+ },
73
+ "exclude": {
74
+ "description": "List of file patterns to exclude from the project, default is [\"**/node_modules/**\"]",
19
75
  "type": "array",
20
76
  "items": {
21
- "type": "string",
22
- "minLength": 1
77
+ "type": "string"
23
78
  }
24
- }
25
- ]
26
- },
27
- "title": {
28
- "description": "A human readable title for the project",
29
- "type": "string",
30
- "minLength": 1
31
- },
32
- "contactPerson": {
33
- "description": "A person who has been involved in creating or maintaining this project",
34
- "type": "string",
35
- "minLength": 1
36
- },
37
- "metadata": {
38
- "description": "Arbitrary metadata as key-value pairs for custom project information",
39
- "type": "object",
40
- "propertyNames": {
41
- "type": "string"
42
- },
43
- "additionalProperties": {}
44
- },
45
- "styles": {
46
- "description": "Project styles customization",
47
- "type": "object",
48
- "properties": {
49
- "theme": {
50
- "description": "Project theme customization",
51
- "$ref": "#/$defs/ThemeCustomization"
52
79
  },
53
- "defaults": {
54
- "description": "Override default values for style properties\nThese values will be used if such property is not defined",
55
- "$ref": "#/$defs/DefaultStyleValues"
80
+ "manualLayouts": {
81
+ "$ref": "#/$defs/ManualLayoutsConfig"
82
+ },
83
+ "inferTechnologyFromIcon": {
84
+ "description": "Automatically derive element technology from icon name when technology is not set explicitly.\nApplies to aws:, azure:, gcp:, and tech: icons. Bootstrap icons are excluded.\nDefaults to true.",
85
+ "type": "boolean"
86
+ },
87
+ "implicitViews": {
88
+ "description": "Auto-generate scoped views for elements without explicit views. Defaults to false.",
89
+ "type": "boolean"
56
90
  },
57
- "customCss": {
58
- "description": "Custom CSS (or list of CSS files) to be included in the generated diagrams",
59
- "$ref": "#/$defs/CustomStylesheets"
91
+ "landingPage": {
92
+ "$ref": "#/$defs/LandingPageConfig"
93
+ },
94
+ "webapp": {
95
+ "$ref": "#/$defs/WebappConfig"
60
96
  }
61
97
  },
62
- "additionalProperties": false
63
- },
64
- "imageAliases": {
65
- "$ref": "#/$defs/ImageAliases"
66
- },
67
- "include": {
68
- "$ref": "#/$defs/include-config"
69
- },
70
- "exclude": {
71
- "description": "List of file patterns to exclude from the project, default is [\"**/node_modules/**\"]",
72
- "type": "array",
73
- "items": {
74
- "type": "string"
75
- }
76
- },
77
- "manualLayouts": {
78
- "$ref": "#/$defs/ManualLayoutsConfig"
79
- },
80
- "inferTechnologyFromIcon": {
81
- "description": "Automatically derive element technology from icon name when technology is not set explicitly.\nApplies to aws:, azure:, gcp:, and tech: icons. Bootstrap icons are excluded.\nDefaults to true.",
82
- "type": "boolean"
83
- },
84
- "implicitViews": {
85
- "description": "Auto-generate scoped views for elements without explicit views. Defaults to false.",
86
- "type": "boolean"
87
- },
88
- "landingPage": {
89
- "$ref": "#/$defs/LandingPageConfig"
98
+ "required": [
99
+ "name"
100
+ ],
101
+ "description": "LikeC4 Project Configuration"
90
102
  },
91
- "webapp": {
92
- "$ref": "#/$defs/WebappConfig"
93
- }
94
- },
95
- "required": [
96
- "name"
97
- ],
98
- "description": "LikeC4 Project Configuration",
99
- "$defs": {
100
103
  "ThemeCustomization": {
101
104
  "type": "object",
102
105
  "properties": {
@@ -124,6 +127,16 @@
124
127
  "additionalProperties": false,
125
128
  "description": "Customize theme colors and sizes"
126
129
  },
130
+ "ColorName": {
131
+ "anyOf": [
132
+ {
133
+ "$ref": "#/$defs/ThemeColorName"
134
+ },
135
+ {
136
+ "$ref": "#/$defs/CustomColorName"
137
+ }
138
+ ]
139
+ },
127
140
  "ThemeColorName": {
128
141
  "type": "string",
129
142
  "enum": [
@@ -141,16 +154,6 @@
141
154
  ]
142
155
  },
143
156
  "CustomColorName": {},
144
- "ColorName": {
145
- "anyOf": [
146
- {
147
- "$ref": "#/$defs/ThemeColorName"
148
- },
149
- {
150
- "$ref": "#/$defs/CustomColorName"
151
- }
152
- ]
153
- },
154
157
  "ThemeColorValues": {
155
158
  "description": "Exact value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
156
159
  "anyOf": [
@@ -312,6 +315,9 @@
312
315
  },
313
316
  "relationship": {
314
317
  "$ref": "#/$defs/RelationshipDefaultStyleValues"
318
+ },
319
+ "view": {
320
+ "$ref": "#/$defs/ViewDefaultValues"
315
321
  }
316
322
  },
317
323
  "additionalProperties": false
@@ -343,7 +349,8 @@
343
349
  "queue",
344
350
  "bucket",
345
351
  "document",
346
- "component"
352
+ "component",
353
+ "agent"
347
354
  ]
348
355
  },
349
356
  "IconPosition": {
@@ -415,6 +422,24 @@
415
422
  "vee"
416
423
  ]
417
424
  },
425
+ "ViewDefaultValues": {
426
+ "type": "object",
427
+ "properties": {
428
+ "routing": {
429
+ "description": "Default edge routing: `spline` for curves or `ortho` for right-angle bends.\nA view can override this default with its `routing` property or `autoLayout` routing parameter.",
430
+ "$ref": "#/$defs/EdgeRouting"
431
+ }
432
+ },
433
+ "additionalProperties": false,
434
+ "description": "Default view settings.\nExplicit settings in a view override these defaults."
435
+ },
436
+ "EdgeRouting": {
437
+ "type": "string",
438
+ "enum": [
439
+ "spline",
440
+ "ortho"
441
+ ]
442
+ },
418
443
  "CustomStylesheets": {
419
444
  "anyOf": [
420
445
  {