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.
- package/__app__/codegen/react.mjs +6 -6
- package/__app__/codegen/webcomponent.mjs +147 -69
- package/__app__/src/aichat/index.mjs +10 -5
- package/__app__/src/chunks/AIChat.mjs +1134 -693
- package/__app__/src/chunks/LikeC4Styles.mjs +3995 -1779
- package/__app__/src/chunks/ProjectsOverview.mjs +624 -334
- package/__app__/src/chunks/es.mjs +515 -335
- package/__app__/src/chunks/hooks.mjs +578 -369
- package/__app__/src/chunks/libs/@floating-ui.mjs +2720 -1966
- package/__app__/src/chunks/libs/@mantine.mjs +13920 -10057
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +2266 -1146
- package/__app__/src/chunks/libs/@tanstack.mjs +3152 -1926
- package/__app__/src/chunks/libs/@xstate/react.mjs +2924 -1468
- package/__app__/src/chunks/libs/@xyflow/react.mjs +6627 -4067
- package/__app__/src/chunks/libs/bezier-js.mjs +1312 -726
- package/__app__/src/chunks/libs/d3.mjs +3219 -1505
- package/__app__/src/chunks/libs/fast-equals.mjs +434 -210
- package/__app__/src/chunks/libs/framer.mjs +9251 -3846
- package/__app__/src/chunks/libs/nanostores.mjs +174 -0
- package/__app__/src/chunks/libs/zod.mjs +4591 -2363
- package/__app__/src/chunks/rolldown-runtime.mjs +39 -23
- package/__app__/src/chunks/styled-system.mjs +2279 -1951
- package/__app__/src/fonts.css +112 -1
- package/__app__/src/main.mjs +40817 -21840
- package/__app__/src/style.css +18488 -1
- package/config/schema.json +122 -97
- package/dist/app/render-view-client.css +1 -1
- package/dist/app/render-view-client.js +508 -334
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +11 -9
- package/dist/chunks/generate-likec4.mjs +5 -0
- package/dist/chunks/index.d.mts +243 -183
- package/dist/chunks/index2.d.mts +2865 -1977
- package/dist/chunks/libs/@chevrotain/gast.mjs +27 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +81 -9
- package/dist/chunks/libs/@chevrotain/types.d.mts +4 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +5 -4
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
- package/dist/chunks/libs/birpc.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +87 -35
- package/dist/chunks/libs/eventemitter3.mjs +1 -1
- package/dist/chunks/libs/json5.mjs +4 -4
- package/dist/chunks/libs/langium.d.mts +9038 -6193
- package/dist/chunks/libs/langium.mjs +16 -24
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/p-limit.mjs +1 -0
- package/dist/chunks/libs/p-queue.mjs +1 -1
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/node.mjs +59 -58
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +45 -45
- package/dist/cli/index.mjs +207 -1315
- package/dist/config/index.d.mts +2 -2
- package/dist/generators/likec4.d.mts +6578 -0
- package/dist/generators/likec4.mjs +1 -0
- package/dist/model/index.d.mts +4 -1
- package/dist/vite-plugin/index.d.mts +4 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +9 -0
- package/dist/vite-plugin/internal/index.d.mts +6 -5
- package/dist/vite-plugin/internal/index.mjs +83 -30
- package/generators/likec4/package.json +4 -0
- package/package.json +113 -106
- package/react/index.d.mts +8500 -26659
- package/react/index.mjs +534 -63936
- package/react/rolldown-runtime-DnkiqaRY.js +1 -0
- package/skills/likec4-dsl/SKILL.md +428 -0
- package/skills/likec4-dsl/evals/evals-public.json +202 -0
- package/skills/likec4-dsl/evals/grading-spec.json +589 -0
- package/skills/likec4-dsl/references/bridge-leanix-drawio.md +42 -0
- package/skills/likec4-dsl/references/cli.md +139 -0
- package/skills/likec4-dsl/references/configuration.md +266 -0
- package/skills/likec4-dsl/references/deployment.md +160 -0
- package/skills/likec4-dsl/references/dynamic-views.md +455 -0
- package/skills/likec4-dsl/references/examples.md +370 -0
- package/skills/likec4-dsl/references/identifier-validity.md +90 -0
- package/skills/likec4-dsl/references/include-predicates-wildcards.md +179 -0
- package/skills/likec4-dsl/references/model.md +151 -0
- package/skills/likec4-dsl/references/predicates.md +123 -0
- package/skills/likec4-dsl/references/relationships-bidirectional.md +176 -0
- package/skills/likec4-dsl/references/specification.md +75 -0
- package/skills/likec4-dsl/references/style-tokens-colors.md +150 -0
- package/skills/likec4-dsl/references/troubleshooting.md +96 -0
- package/skills/likec4-dsl/references/views.md +329 -0
- package/dist/chunks/libs/picomatch.mjs +0 -1
- package/dist/chunks/libs/zod.d.mts +0 -3840
- package/dist/chunks/libs/zod.mjs +0 -65
package/config/schema.json
CHANGED
|
@@ -1,102 +1,105 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"type": "
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
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
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
91
|
+
"landingPage": {
|
|
92
|
+
"$ref": "#/$defs/LandingPageConfig"
|
|
93
|
+
},
|
|
94
|
+
"webapp": {
|
|
95
|
+
"$ref": "#/$defs/WebappConfig"
|
|
60
96
|
}
|
|
61
97
|
},
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
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
|
{
|