likec4 1.52.0 → 1.54.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 (42) hide show
  1. package/__app__/src/likec4.js +43 -53
  2. package/__app__/src/routes/index.js +7 -0
  3. package/__app__/src/routes/single.js +30 -18
  4. package/__app__/src/style.css +1 -1
  5. package/__app__/src/vendors.js +5784 -4786
  6. package/config/schema.json +130 -89
  7. package/dist/THIRD-PARTY-LICENSES.md +10 -2
  8. package/dist/_chunks/filesystem.mjs +68 -68
  9. package/dist/_chunks/index.d.mts +10 -1
  10. package/dist/_chunks/index2.d.mts +76 -4
  11. package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +7 -7
  12. package/dist/_chunks/libs/@hono/mcp.mjs +35 -24
  13. package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
  14. package/dist/_chunks/libs/@logtape/logtape.d.mts +1021 -0
  15. package/dist/_chunks/libs/@logtape/logtape.mjs +4 -6
  16. package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +796 -196
  17. package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +6 -6
  18. package/dist/_chunks/libs/@nanostores/react.d.mts +22 -17
  19. package/dist/_chunks/libs/@nanostores/react.mjs +1 -1
  20. package/dist/_chunks/libs/defu.mjs +1 -1
  21. package/dist/_chunks/libs/destr.mjs +1 -0
  22. package/dist/_chunks/libs/fast-equals.mjs +1 -1
  23. package/dist/_chunks/libs/langium.mjs +1 -1
  24. package/dist/_chunks/libs/picomatch.mjs +1 -1
  25. package/dist/_chunks/libs/remeda.mjs +2 -2
  26. package/dist/_chunks/libs/tinyrainbow.mjs +1 -1
  27. package/dist/_chunks/libs/unstorage.mjs +1 -0
  28. package/dist/_chunks/node.mjs +1 -0
  29. package/dist/_chunks/sequence.mjs +1 -1
  30. package/dist/_chunks/src.mjs +14 -12
  31. package/dist/_chunks/src2.mjs +51 -51
  32. package/dist/cli/index.mjs +164 -84
  33. package/dist/index.d.mts +16 -819
  34. package/dist/index.mjs +1 -1
  35. package/dist/vite-plugin/index.mjs +1 -1
  36. package/dist/vite-plugin/internal.mjs +1 -1
  37. package/package.json +41 -40
  38. package/react/index.d.mts +30 -20
  39. package/react/index.mjs +995 -1736
  40. package/vite-plugin-modules.d.ts +5 -0
  41. package/dist/_chunks/LikeC4.mjs +0 -1
  42. package/dist/_chunks/libs/boxen.d.mts +0 -1
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "id": "LikeC4ProjectConfig",
4
- "description": "LikeC4 Project Configuration",
5
3
  "type": "object",
6
4
  "properties": {
7
5
  "name": {
8
- "description": "Project name, must be unique in the workspace",
9
6
  "type": "string",
10
- "minLength": 1
7
+ "minLength": 1,
8
+ "description": "Project name, must be unique in the workspace"
11
9
  },
12
10
  "extends": {
13
11
  "description": "Extend styles from other config files",
@@ -86,29 +84,25 @@
86
84
  "implicitViews": {
87
85
  "description": "Auto-generate scoped views for elements without explicit views. Defaults to false.",
88
86
  "type": "boolean"
87
+ },
88
+ "landingPage": {
89
+ "$ref": "#/$defs/LandingPageConfig"
89
90
  }
90
91
  },
91
92
  "required": [
92
93
  "name"
93
94
  ],
95
+ "id": "LikeC4ProjectConfig",
96
+ "description": "LikeC4 Project Configuration",
94
97
  "$defs": {
95
98
  "ThemeCustomization": {
96
- "id": "ThemeCustomization",
97
- "description": "Customize theme colors and sizes",
98
99
  "type": "object",
99
100
  "properties": {
100
101
  "colors": {
101
102
  "description": "Override theme colors",
102
103
  "type": "object",
103
104
  "propertyNames": {
104
- "anyOf": [
105
- {
106
- "$ref": "#/$defs/ColorName"
107
- },
108
- {
109
- "not": {}
110
- }
111
- ]
105
+ "$ref": "#/$defs/ColorName"
112
106
  },
113
107
  "additionalProperties": {
114
108
  "$ref": "#/$defs/ThemeColorValues"
@@ -118,35 +112,18 @@
118
112
  "description": "Override theme sizes",
119
113
  "type": "object",
120
114
  "propertyNames": {
121
- "anyOf": [
122
- {
123
- "$ref": "#/$defs/ElementSize"
124
- },
125
- {
126
- "not": {}
127
- }
128
- ]
115
+ "$ref": "#/$defs/ElementSize"
129
116
  },
130
117
  "additionalProperties": {
131
118
  "$ref": "#/$defs/Dimensions"
132
119
  }
133
120
  }
134
121
  },
135
- "additionalProperties": false
136
- },
137
- "ColorName": {
138
- "id": "ColorName",
139
- "anyOf": [
140
- {
141
- "$ref": "#/$defs/ThemeColorName"
142
- },
143
- {
144
- "$ref": "#/$defs/CustomColorName"
145
- }
146
- ]
122
+ "additionalProperties": false,
123
+ "id": "ThemeCustomization",
124
+ "description": "Customize theme colors and sizes"
147
125
  },
148
126
  "ThemeColorName": {
149
- "id": "ThemeColorName",
150
127
  "type": "string",
151
128
  "enum": [
152
129
  "amber",
@@ -160,11 +137,23 @@
160
137
  "red",
161
138
  "secondary",
162
139
  "sky"
163
- ]
140
+ ],
141
+ "id": "ThemeColorName"
164
142
  },
165
143
  "CustomColorName": {
166
144
  "id": "CustomColorName"
167
145
  },
146
+ "ColorName": {
147
+ "id": "ColorName",
148
+ "anyOf": [
149
+ {
150
+ "$ref": "#/$defs/ThemeColorName"
151
+ },
152
+ {
153
+ "$ref": "#/$defs/CustomColorName"
154
+ }
155
+ ]
156
+ },
168
157
  "ThemeColorValues": {
169
158
  "id": "ThemeColorValues",
170
159
  "description": "Exact value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
@@ -183,7 +172,6 @@
183
172
  "type": "object",
184
173
  "properties": {
185
174
  "elements": {
186
- "description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
187
175
  "anyOf": [
188
176
  {
189
177
  "$ref": "#/$defs/ElementColorValues"
@@ -191,10 +179,10 @@
191
179
  {
192
180
  "$ref": "#/$defs/ColorLiteral"
193
181
  }
194
- ]
182
+ ],
183
+ "description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values"
195
184
  },
196
185
  "relationships": {
197
- "description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
198
186
  "anyOf": [
199
187
  {
200
188
  "$ref": "#/$defs/RelationshipColorValues"
@@ -202,7 +190,8 @@
202
190
  {
203
191
  "$ref": "#/$defs/ColorLiteral"
204
192
  }
205
- ]
193
+ ],
194
+ "description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values"
206
195
  }
207
196
  },
208
197
  "required": [
@@ -212,7 +201,6 @@
212
201
  "additionalProperties": false
213
202
  },
214
203
  "ElementColorValues": {
215
- "id": "ElementColorValues",
216
204
  "type": "object",
217
205
  "properties": {
218
206
  "fill": {
@@ -238,15 +226,15 @@
238
226
  "hiContrast",
239
227
  "loContrast"
240
228
  ],
241
- "additionalProperties": false
229
+ "additionalProperties": false,
230
+ "id": "ElementColorValues"
242
231
  },
243
232
  "ColorLiteral": {
244
- "id": "ColorLiteral",
245
233
  "type": "string",
246
- "minLength": 1
234
+ "minLength": 1,
235
+ "id": "ColorLiteral"
247
236
  },
248
237
  "RelationshipColorValues": {
249
- "id": "RelationshipColorValues",
250
238
  "type": "object",
251
239
  "properties": {
252
240
  "line": {
@@ -258,8 +246,8 @@
258
246
  "$ref": "#/$defs/ColorLiteral"
259
247
  },
260
248
  "labelBg": {
261
- "description": "Label background color",
262
249
  "default": "rgba(0, 0, 0, 0.5)",
250
+ "description": "Label background color",
263
251
  "$ref": "#/$defs/ColorLiteral"
264
252
  }
265
253
  },
@@ -267,10 +255,10 @@
267
255
  "line",
268
256
  "label"
269
257
  ],
270
- "additionalProperties": false
258
+ "additionalProperties": false,
259
+ "id": "RelationshipColorValues"
271
260
  },
272
261
  "ElementSize": {
273
- "id": "ElementSize",
274
262
  "type": "string",
275
263
  "enum": [
276
264
  "xs",
@@ -278,11 +266,10 @@
278
266
  "md",
279
267
  "lg",
280
268
  "xl"
281
- ]
269
+ ],
270
+ "id": "ElementSize"
282
271
  },
283
272
  "Dimensions": {
284
- "id": "Dimensions",
285
- "description": "Defines dimensions for theme size",
286
273
  "type": "object",
287
274
  "properties": {
288
275
  "width": {
@@ -298,10 +285,11 @@
298
285
  "width",
299
286
  "height"
300
287
  ],
301
- "additionalProperties": false
288
+ "additionalProperties": false,
289
+ "id": "Dimensions",
290
+ "description": "Defines dimensions for theme size"
302
291
  },
303
292
  "DefaultStyleValues": {
304
- "id": "DefaultStyleValues",
305
293
  "type": "object",
306
294
  "properties": {
307
295
  "color": {
@@ -333,31 +321,30 @@
333
321
  "$ref": "#/$defs/GroupDefaultStyleValues"
334
322
  },
335
323
  "relationship": {
336
- "description": "Override default values for relationship style properties\nThese values will be used if such property is not defined",
337
324
  "$ref": "#/$defs/RelationshipDefaultStyleValues"
338
325
  }
339
326
  },
340
- "additionalProperties": false
327
+ "additionalProperties": false,
328
+ "id": "DefaultStyleValues"
341
329
  },
342
330
  "Opacity": {
343
- "id": "Opacity",
344
- "description": "Opacity 0-100%",
345
331
  "type": "integer",
346
332
  "minimum": 0,
347
- "maximum": 100
333
+ "maximum": 100,
334
+ "id": "Opacity",
335
+ "description": "Opacity 0-100%"
348
336
  },
349
337
  "BorderStyle": {
350
- "id": "BorderStyle",
351
338
  "type": "string",
352
339
  "enum": [
353
340
  "solid",
354
341
  "dashed",
355
342
  "dotted",
356
343
  "none"
357
- ]
344
+ ],
345
+ "id": "BorderStyle"
358
346
  },
359
347
  "ElementShape": {
360
- "id": "ElementShape",
361
348
  "type": "string",
362
349
  "enum": [
363
350
  "rectangle",
@@ -370,20 +357,20 @@
370
357
  "bucket",
371
358
  "document",
372
359
  "component"
373
- ]
360
+ ],
361
+ "id": "ElementShape"
374
362
  },
375
363
  "IconPosition": {
376
- "id": "IconPosition",
377
364
  "type": "string",
378
365
  "enum": [
379
366
  "left",
380
367
  "right",
381
368
  "top",
382
369
  "bottom"
383
- ]
370
+ ],
371
+ "id": "IconPosition"
384
372
  },
385
373
  "GroupDefaultStyleValues": {
386
- "id": "GroupDefaultStyleValues",
387
374
  "type": "object",
388
375
  "properties": {
389
376
  "color": {
@@ -399,11 +386,10 @@
399
386
  "$ref": "#/$defs/BorderStyle"
400
387
  }
401
388
  },
402
- "additionalProperties": false
389
+ "additionalProperties": false,
390
+ "id": "GroupDefaultStyleValues"
403
391
  },
404
392
  "RelationshipDefaultStyleValues": {
405
- "id": "RelationshipDefaultStyleValues",
406
- "description": "Override default values for relationship style properties\nThese values will be used if such property is not defined",
407
393
  "type": "object",
408
394
  "properties": {
409
395
  "color": {
@@ -419,19 +405,20 @@
419
405
  "$ref": "#/$defs/ArrowType"
420
406
  }
421
407
  },
422
- "additionalProperties": false
408
+ "additionalProperties": false,
409
+ "id": "RelationshipDefaultStyleValues",
410
+ "description": "Override default values for relationship style properties\nThese values will be used if such property is not defined"
423
411
  },
424
412
  "LineType": {
425
- "id": "LineType",
426
413
  "type": "string",
427
414
  "enum": [
428
415
  "dashed",
429
416
  "solid",
430
417
  "dotted"
431
- ]
418
+ ],
419
+ "id": "LineType"
432
420
  },
433
421
  "ArrowType": {
434
- "id": "ArrowType",
435
422
  "type": "string",
436
423
  "enum": [
437
424
  "none",
@@ -444,10 +431,10 @@
444
431
  "crow",
445
432
  "open",
446
433
  "vee"
447
- ]
434
+ ],
435
+ "id": "ArrowType"
448
436
  },
449
437
  "CustomStylesheets": {
450
- "id": "CustomStylesheets",
451
438
  "anyOf": [
452
439
  {
453
440
  "type": "string",
@@ -460,11 +447,10 @@
460
447
  "minLength": 1
461
448
  }
462
449
  }
463
- ]
450
+ ],
451
+ "id": "CustomStylesheets"
464
452
  },
465
453
  "ImageAliases": {
466
- "id": "ImageAliases",
467
- "description": "Map of image alias prefixes to relative paths (keys must match /^@\\w+$/; values must be relative paths without protocol or leading slash).",
468
454
  "type": "object",
469
455
  "propertyNames": {
470
456
  "type": "string",
@@ -475,32 +461,32 @@
475
461
  "type": "string",
476
462
  "minLength": 1,
477
463
  "pattern": "^(?!\\/|[A-Za-z]:[\\\\\\/])(?!.*:\\/\\/).*$"
478
- }
464
+ },
465
+ "id": "ImageAliases",
466
+ "description": "Map of image alias prefixes to relative paths (keys must match /^@\\w+$/; values must be relative paths without protocol or leading slash)."
479
467
  },
480
468
  "include-config": {
481
- "id": "include-config",
482
- "description": "Configuration for including additional LikeC4 source files from other directories.\nExample: { \"paths\": [\"../shared\", \"../common/specs\"], \"maxDepth\": 5, \"fileThreshold\": 50 }",
483
469
  "type": "object",
484
470
  "properties": {
485
471
  "paths": {
486
- "description": "Additional relative directory paths to include LikeC4 source files from, searched recursively.\nPaths are relative to the project folder (the folder containing this config file).\nExample: [\"../shared\", \"../common/specs\"]",
487
472
  "type": "array",
488
473
  "items": {
489
474
  "type": "string",
490
475
  "minLength": 1,
491
476
  "pattern": "^(?!\\/|[A-Za-z]:[\\\\\\/])(?!.*:\\/\\/).*$"
492
- }
477
+ },
478
+ "description": "Additional relative directory paths to include LikeC4 source files from, searched recursively.\nPaths are relative to the project folder (the folder containing this config file).\nExample: [\"../shared\", \"../common/specs\"]"
493
479
  },
494
480
  "maxDepth": {
495
- "description": "Maximum directory depth to scan when searching for .c4 files in include paths.\nPrevents excessive scanning of deeply nested directories.\nDefault: 3",
496
481
  "default": 3,
482
+ "description": "Maximum directory depth to scan when searching for .c4 files in include paths.\nPrevents excessive scanning of deeply nested directories.\nDefault: 3",
497
483
  "type": "integer",
498
484
  "minimum": 1,
499
485
  "maximum": 20
500
486
  },
501
487
  "fileThreshold": {
502
- "description": "Maximum number of files to load from include paths before warning.\nHelps identify performance issues from accidentally including large directories.\nDefault: 30",
503
488
  "default": 30,
489
+ "description": "Maximum number of files to load from include paths before warning.\nHelps identify performance issues from accidentally including large directories.\nDefault: 30",
504
490
  "type": "integer",
505
491
  "minimum": 1,
506
492
  "maximum": 10000
@@ -509,20 +495,75 @@
509
495
  "required": [
510
496
  "paths"
511
497
  ],
512
- "additionalProperties": false
498
+ "additionalProperties": false,
499
+ "id": "include-config",
500
+ "description": "Configuration for including additional LikeC4 source files from other directories.\nExample: { \"paths\": [\"../shared\", \"../common/specs\"], \"maxDepth\": 5, \"fileThreshold\": 50 }"
513
501
  },
514
502
  "ManualLayoutsConfig": {
515
- "id": "ManualLayoutsConfig",
516
- "description": "Configuration for manual layouts",
517
503
  "type": "object",
518
504
  "properties": {
519
505
  "outDir": {
520
- "description": "Path to the directory where manual layouts will be stored,\nrelative to the folder containing the project config. \n\nDefaults to '.likec4'.",
521
506
  "default": ".likec4",
507
+ "description": "Path to the directory where manual layouts will be stored,\nrelative to the folder containing the project config. \n\nDefaults to '.likec4'.",
522
508
  "type": "string"
523
509
  }
524
510
  },
525
- "additionalProperties": false
511
+ "additionalProperties": false,
512
+ "id": "ManualLayoutsConfig",
513
+ "description": "Configuration for manual layouts"
514
+ },
515
+ "LandingPageConfig": {
516
+ "anyOf": [
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "redirect": {
521
+ "type": "boolean",
522
+ "const": true
523
+ }
524
+ },
525
+ "required": [
526
+ "redirect"
527
+ ],
528
+ "additionalProperties": false
529
+ },
530
+ {
531
+ "type": "object",
532
+ "properties": {
533
+ "include": {
534
+ "minItems": 1,
535
+ "type": "array",
536
+ "items": {
537
+ "type": "string",
538
+ "minLength": 1
539
+ }
540
+ }
541
+ },
542
+ "required": [
543
+ "include"
544
+ ],
545
+ "additionalProperties": false
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "exclude": {
551
+ "minItems": 1,
552
+ "type": "array",
553
+ "items": {
554
+ "type": "string",
555
+ "minLength": 1
556
+ }
557
+ }
558
+ },
559
+ "required": [
560
+ "exclude"
561
+ ],
562
+ "additionalProperties": false
563
+ }
564
+ ],
565
+ "id": "LandingPageConfig",
566
+ "description": "Configure the landing page. Use redirect to go to the index view, or include/exclude to filter the view grid."
526
567
  }
527
568
  }
528
569
  }
@@ -300,6 +300,14 @@ Repository: https://github.com/likec4/likec4
300
300
 
301
301
  ---------------------------------------
302
302
 
303
+ ## @likec4/leanix-bridge
304
+
305
+ License: MIT
306
+ By: Denis Davydkov
307
+ Repository: https://github.com/likec4/likec4
308
+
309
+ ---------------------------------------
310
+
303
311
  ## @logtape/logtape
304
312
 
305
313
  License: MIT
@@ -706,10 +714,10 @@ Repository: https://github.com/langium/chevrotain-allstar
706
714
 
707
715
  ---------------------------------------
708
716
 
709
- ## defu, ufo
717
+ ## defu, destr, ufo, unstorage
710
718
 
711
719
  License: MIT
712
- Repositories: https://github.com/unjs/defu, https://github.com/unjs/ufo
720
+ Repositories: https://github.com/unjs/defu, https://github.com/unjs/destr, https://github.com/unjs/ufo, https://github.com/unjs/unstorage
713
721
 
714
722
  > MIT License
715
723
  >