likec4 1.53.0 → 1.55.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__/src/likec4.js +9 -5
- package/__app__/src/routes/index.js +2 -2
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +4023 -2281
- package/config/schema.json +77 -92
- package/dist/THIRD-PARTY-LICENSES.md +3 -69
- package/dist/_chunks/index.d.mts +1 -1
- package/dist/_chunks/index2.d.mts +10 -20
- package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +7 -7
- package/dist/_chunks/libs/@hono/mcp.mjs +35 -24
- package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
- package/dist/_chunks/libs/@logtape/logtape.d.mts +3 -3
- package/dist/_chunks/libs/@logtape/logtape.mjs +3 -3
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +8 -8
- package/dist/_chunks/libs/@nanostores/react.d.mts +22 -17
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -1
- package/dist/_chunks/libs/ajv.mjs +1 -1
- package/dist/_chunks/libs/atomically.mjs +1 -1
- package/dist/_chunks/libs/conf.mjs +1 -1
- package/dist/_chunks/libs/defu.mjs +1 -1
- package/dist/_chunks/libs/find-up-simple.mjs +1 -1
- package/dist/_chunks/libs/p-timeout.mjs +1 -0
- package/dist/_chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/_chunks/libs/pathe.mjs +1 -1
- package/dist/_chunks/libs/picomatch.mjs +1 -1
- package/dist/_chunks/libs/tinyrainbow.mjs +1 -1
- package/dist/_chunks/libs/zod.d.mts +2091 -0
- package/dist/_chunks/node.mjs +76 -1
- package/dist/_chunks/src2.mjs +69 -69
- package/dist/cli/index.mjs +1228 -97
- package/dist/config/index.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/vite-plugin/index.d.mts +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal.mjs +1 -1
- package/package.json +32 -31
- package/react/index.d.mts +6 -0
- package/react/index.mjs +55 -37
- package/dist/_chunks/filesystem.mjs +0 -1231
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +0 -8725
package/config/schema.json
CHANGED
|
@@ -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",
|
|
@@ -94,24 +92,17 @@
|
|
|
94
92
|
"required": [
|
|
95
93
|
"name"
|
|
96
94
|
],
|
|
95
|
+
"id": "LikeC4ProjectConfig",
|
|
96
|
+
"description": "LikeC4 Project Configuration",
|
|
97
97
|
"$defs": {
|
|
98
98
|
"ThemeCustomization": {
|
|
99
|
-
"id": "ThemeCustomization",
|
|
100
|
-
"description": "Customize theme colors and sizes",
|
|
101
99
|
"type": "object",
|
|
102
100
|
"properties": {
|
|
103
101
|
"colors": {
|
|
104
102
|
"description": "Override theme colors",
|
|
105
103
|
"type": "object",
|
|
106
104
|
"propertyNames": {
|
|
107
|
-
"
|
|
108
|
-
{
|
|
109
|
-
"$ref": "#/$defs/ColorName"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"not": {}
|
|
113
|
-
}
|
|
114
|
-
]
|
|
105
|
+
"$ref": "#/$defs/ColorName"
|
|
115
106
|
},
|
|
116
107
|
"additionalProperties": {
|
|
117
108
|
"$ref": "#/$defs/ThemeColorValues"
|
|
@@ -121,35 +112,18 @@
|
|
|
121
112
|
"description": "Override theme sizes",
|
|
122
113
|
"type": "object",
|
|
123
114
|
"propertyNames": {
|
|
124
|
-
"
|
|
125
|
-
{
|
|
126
|
-
"$ref": "#/$defs/ElementSize"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"not": {}
|
|
130
|
-
}
|
|
131
|
-
]
|
|
115
|
+
"$ref": "#/$defs/ElementSize"
|
|
132
116
|
},
|
|
133
117
|
"additionalProperties": {
|
|
134
118
|
"$ref": "#/$defs/Dimensions"
|
|
135
119
|
}
|
|
136
120
|
}
|
|
137
121
|
},
|
|
138
|
-
"additionalProperties": false
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"id": "ColorName",
|
|
142
|
-
"anyOf": [
|
|
143
|
-
{
|
|
144
|
-
"$ref": "#/$defs/ThemeColorName"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"$ref": "#/$defs/CustomColorName"
|
|
148
|
-
}
|
|
149
|
-
]
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"id": "ThemeCustomization",
|
|
124
|
+
"description": "Customize theme colors and sizes"
|
|
150
125
|
},
|
|
151
126
|
"ThemeColorName": {
|
|
152
|
-
"id": "ThemeColorName",
|
|
153
127
|
"type": "string",
|
|
154
128
|
"enum": [
|
|
155
129
|
"amber",
|
|
@@ -163,11 +137,23 @@
|
|
|
163
137
|
"red",
|
|
164
138
|
"secondary",
|
|
165
139
|
"sky"
|
|
166
|
-
]
|
|
140
|
+
],
|
|
141
|
+
"id": "ThemeColorName"
|
|
167
142
|
},
|
|
168
143
|
"CustomColorName": {
|
|
169
144
|
"id": "CustomColorName"
|
|
170
145
|
},
|
|
146
|
+
"ColorName": {
|
|
147
|
+
"id": "ColorName",
|
|
148
|
+
"anyOf": [
|
|
149
|
+
{
|
|
150
|
+
"$ref": "#/$defs/ThemeColorName"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"$ref": "#/$defs/CustomColorName"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
171
157
|
"ThemeColorValues": {
|
|
172
158
|
"id": "ThemeColorValues",
|
|
173
159
|
"description": "Exact value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
|
|
@@ -186,7 +172,6 @@
|
|
|
186
172
|
"type": "object",
|
|
187
173
|
"properties": {
|
|
188
174
|
"elements": {
|
|
189
|
-
"description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
|
|
190
175
|
"anyOf": [
|
|
191
176
|
{
|
|
192
177
|
"$ref": "#/$defs/ElementColorValues"
|
|
@@ -194,10 +179,10 @@
|
|
|
194
179
|
{
|
|
195
180
|
"$ref": "#/$defs/ColorLiteral"
|
|
196
181
|
}
|
|
197
|
-
]
|
|
182
|
+
],
|
|
183
|
+
"description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values"
|
|
198
184
|
},
|
|
199
185
|
"relationships": {
|
|
200
|
-
"description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values",
|
|
201
186
|
"anyOf": [
|
|
202
187
|
{
|
|
203
188
|
"$ref": "#/$defs/RelationshipColorValues"
|
|
@@ -205,7 +190,8 @@
|
|
|
205
190
|
{
|
|
206
191
|
"$ref": "#/$defs/ColorLiteral"
|
|
207
192
|
}
|
|
208
|
-
]
|
|
193
|
+
],
|
|
194
|
+
"description": "Exact color value (hex, rgb, rgba, hsl, hsla ...) or break down of specific color values"
|
|
209
195
|
}
|
|
210
196
|
},
|
|
211
197
|
"required": [
|
|
@@ -215,7 +201,6 @@
|
|
|
215
201
|
"additionalProperties": false
|
|
216
202
|
},
|
|
217
203
|
"ElementColorValues": {
|
|
218
|
-
"id": "ElementColorValues",
|
|
219
204
|
"type": "object",
|
|
220
205
|
"properties": {
|
|
221
206
|
"fill": {
|
|
@@ -241,15 +226,15 @@
|
|
|
241
226
|
"hiContrast",
|
|
242
227
|
"loContrast"
|
|
243
228
|
],
|
|
244
|
-
"additionalProperties": false
|
|
229
|
+
"additionalProperties": false,
|
|
230
|
+
"id": "ElementColorValues"
|
|
245
231
|
},
|
|
246
232
|
"ColorLiteral": {
|
|
247
|
-
"id": "ColorLiteral",
|
|
248
233
|
"type": "string",
|
|
249
|
-
"minLength": 1
|
|
234
|
+
"minLength": 1,
|
|
235
|
+
"id": "ColorLiteral"
|
|
250
236
|
},
|
|
251
237
|
"RelationshipColorValues": {
|
|
252
|
-
"id": "RelationshipColorValues",
|
|
253
238
|
"type": "object",
|
|
254
239
|
"properties": {
|
|
255
240
|
"line": {
|
|
@@ -261,8 +246,8 @@
|
|
|
261
246
|
"$ref": "#/$defs/ColorLiteral"
|
|
262
247
|
},
|
|
263
248
|
"labelBg": {
|
|
264
|
-
"description": "Label background color",
|
|
265
249
|
"default": "rgba(0, 0, 0, 0.5)",
|
|
250
|
+
"description": "Label background color",
|
|
266
251
|
"$ref": "#/$defs/ColorLiteral"
|
|
267
252
|
}
|
|
268
253
|
},
|
|
@@ -270,10 +255,10 @@
|
|
|
270
255
|
"line",
|
|
271
256
|
"label"
|
|
272
257
|
],
|
|
273
|
-
"additionalProperties": false
|
|
258
|
+
"additionalProperties": false,
|
|
259
|
+
"id": "RelationshipColorValues"
|
|
274
260
|
},
|
|
275
261
|
"ElementSize": {
|
|
276
|
-
"id": "ElementSize",
|
|
277
262
|
"type": "string",
|
|
278
263
|
"enum": [
|
|
279
264
|
"xs",
|
|
@@ -281,11 +266,10 @@
|
|
|
281
266
|
"md",
|
|
282
267
|
"lg",
|
|
283
268
|
"xl"
|
|
284
|
-
]
|
|
269
|
+
],
|
|
270
|
+
"id": "ElementSize"
|
|
285
271
|
},
|
|
286
272
|
"Dimensions": {
|
|
287
|
-
"id": "Dimensions",
|
|
288
|
-
"description": "Defines dimensions for theme size",
|
|
289
273
|
"type": "object",
|
|
290
274
|
"properties": {
|
|
291
275
|
"width": {
|
|
@@ -301,10 +285,11 @@
|
|
|
301
285
|
"width",
|
|
302
286
|
"height"
|
|
303
287
|
],
|
|
304
|
-
"additionalProperties": false
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"id": "Dimensions",
|
|
290
|
+
"description": "Defines dimensions for theme size"
|
|
305
291
|
},
|
|
306
292
|
"DefaultStyleValues": {
|
|
307
|
-
"id": "DefaultStyleValues",
|
|
308
293
|
"type": "object",
|
|
309
294
|
"properties": {
|
|
310
295
|
"color": {
|
|
@@ -336,31 +321,30 @@
|
|
|
336
321
|
"$ref": "#/$defs/GroupDefaultStyleValues"
|
|
337
322
|
},
|
|
338
323
|
"relationship": {
|
|
339
|
-
"description": "Override default values for relationship style properties\nThese values will be used if such property is not defined",
|
|
340
324
|
"$ref": "#/$defs/RelationshipDefaultStyleValues"
|
|
341
325
|
}
|
|
342
326
|
},
|
|
343
|
-
"additionalProperties": false
|
|
327
|
+
"additionalProperties": false,
|
|
328
|
+
"id": "DefaultStyleValues"
|
|
344
329
|
},
|
|
345
330
|
"Opacity": {
|
|
346
|
-
"id": "Opacity",
|
|
347
|
-
"description": "Opacity 0-100%",
|
|
348
331
|
"type": "integer",
|
|
349
332
|
"minimum": 0,
|
|
350
|
-
"maximum": 100
|
|
333
|
+
"maximum": 100,
|
|
334
|
+
"id": "Opacity",
|
|
335
|
+
"description": "Opacity 0-100%"
|
|
351
336
|
},
|
|
352
337
|
"BorderStyle": {
|
|
353
|
-
"id": "BorderStyle",
|
|
354
338
|
"type": "string",
|
|
355
339
|
"enum": [
|
|
356
340
|
"solid",
|
|
357
341
|
"dashed",
|
|
358
342
|
"dotted",
|
|
359
343
|
"none"
|
|
360
|
-
]
|
|
344
|
+
],
|
|
345
|
+
"id": "BorderStyle"
|
|
361
346
|
},
|
|
362
347
|
"ElementShape": {
|
|
363
|
-
"id": "ElementShape",
|
|
364
348
|
"type": "string",
|
|
365
349
|
"enum": [
|
|
366
350
|
"rectangle",
|
|
@@ -373,20 +357,20 @@
|
|
|
373
357
|
"bucket",
|
|
374
358
|
"document",
|
|
375
359
|
"component"
|
|
376
|
-
]
|
|
360
|
+
],
|
|
361
|
+
"id": "ElementShape"
|
|
377
362
|
},
|
|
378
363
|
"IconPosition": {
|
|
379
|
-
"id": "IconPosition",
|
|
380
364
|
"type": "string",
|
|
381
365
|
"enum": [
|
|
382
366
|
"left",
|
|
383
367
|
"right",
|
|
384
368
|
"top",
|
|
385
369
|
"bottom"
|
|
386
|
-
]
|
|
370
|
+
],
|
|
371
|
+
"id": "IconPosition"
|
|
387
372
|
},
|
|
388
373
|
"GroupDefaultStyleValues": {
|
|
389
|
-
"id": "GroupDefaultStyleValues",
|
|
390
374
|
"type": "object",
|
|
391
375
|
"properties": {
|
|
392
376
|
"color": {
|
|
@@ -402,11 +386,10 @@
|
|
|
402
386
|
"$ref": "#/$defs/BorderStyle"
|
|
403
387
|
}
|
|
404
388
|
},
|
|
405
|
-
"additionalProperties": false
|
|
389
|
+
"additionalProperties": false,
|
|
390
|
+
"id": "GroupDefaultStyleValues"
|
|
406
391
|
},
|
|
407
392
|
"RelationshipDefaultStyleValues": {
|
|
408
|
-
"id": "RelationshipDefaultStyleValues",
|
|
409
|
-
"description": "Override default values for relationship style properties\nThese values will be used if such property is not defined",
|
|
410
393
|
"type": "object",
|
|
411
394
|
"properties": {
|
|
412
395
|
"color": {
|
|
@@ -422,19 +405,20 @@
|
|
|
422
405
|
"$ref": "#/$defs/ArrowType"
|
|
423
406
|
}
|
|
424
407
|
},
|
|
425
|
-
"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"
|
|
426
411
|
},
|
|
427
412
|
"LineType": {
|
|
428
|
-
"id": "LineType",
|
|
429
413
|
"type": "string",
|
|
430
414
|
"enum": [
|
|
431
415
|
"dashed",
|
|
432
416
|
"solid",
|
|
433
417
|
"dotted"
|
|
434
|
-
]
|
|
418
|
+
],
|
|
419
|
+
"id": "LineType"
|
|
435
420
|
},
|
|
436
421
|
"ArrowType": {
|
|
437
|
-
"id": "ArrowType",
|
|
438
422
|
"type": "string",
|
|
439
423
|
"enum": [
|
|
440
424
|
"none",
|
|
@@ -447,10 +431,10 @@
|
|
|
447
431
|
"crow",
|
|
448
432
|
"open",
|
|
449
433
|
"vee"
|
|
450
|
-
]
|
|
434
|
+
],
|
|
435
|
+
"id": "ArrowType"
|
|
451
436
|
},
|
|
452
437
|
"CustomStylesheets": {
|
|
453
|
-
"id": "CustomStylesheets",
|
|
454
438
|
"anyOf": [
|
|
455
439
|
{
|
|
456
440
|
"type": "string",
|
|
@@ -463,11 +447,10 @@
|
|
|
463
447
|
"minLength": 1
|
|
464
448
|
}
|
|
465
449
|
}
|
|
466
|
-
]
|
|
450
|
+
],
|
|
451
|
+
"id": "CustomStylesheets"
|
|
467
452
|
},
|
|
468
453
|
"ImageAliases": {
|
|
469
|
-
"id": "ImageAliases",
|
|
470
|
-
"description": "Map of image alias prefixes to relative paths (keys must match /^@\\w+$/; values must be relative paths without protocol or leading slash).",
|
|
471
454
|
"type": "object",
|
|
472
455
|
"propertyNames": {
|
|
473
456
|
"type": "string",
|
|
@@ -478,32 +461,32 @@
|
|
|
478
461
|
"type": "string",
|
|
479
462
|
"minLength": 1,
|
|
480
463
|
"pattern": "^(?!\\/|[A-Za-z]:[\\\\\\/])(?!.*:\\/\\/).*$"
|
|
481
|
-
}
|
|
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)."
|
|
482
467
|
},
|
|
483
468
|
"include-config": {
|
|
484
|
-
"id": "include-config",
|
|
485
|
-
"description": "Configuration for including additional LikeC4 source files from other directories.\nExample: { \"paths\": [\"../shared\", \"../common/specs\"], \"maxDepth\": 5, \"fileThreshold\": 50 }",
|
|
486
469
|
"type": "object",
|
|
487
470
|
"properties": {
|
|
488
471
|
"paths": {
|
|
489
|
-
"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\"]",
|
|
490
472
|
"type": "array",
|
|
491
473
|
"items": {
|
|
492
474
|
"type": "string",
|
|
493
475
|
"minLength": 1,
|
|
494
476
|
"pattern": "^(?!\\/|[A-Za-z]:[\\\\\\/])(?!.*:\\/\\/).*$"
|
|
495
|
-
}
|
|
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\"]"
|
|
496
479
|
},
|
|
497
480
|
"maxDepth": {
|
|
498
|
-
"description": "Maximum directory depth to scan when searching for .c4 files in include paths.\nPrevents excessive scanning of deeply nested directories.\nDefault: 3",
|
|
499
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",
|
|
500
483
|
"type": "integer",
|
|
501
484
|
"minimum": 1,
|
|
502
485
|
"maximum": 20
|
|
503
486
|
},
|
|
504
487
|
"fileThreshold": {
|
|
505
|
-
"description": "Maximum number of files to load from include paths before warning.\nHelps identify performance issues from accidentally including large directories.\nDefault: 30",
|
|
506
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",
|
|
507
490
|
"type": "integer",
|
|
508
491
|
"minimum": 1,
|
|
509
492
|
"maximum": 10000
|
|
@@ -512,24 +495,24 @@
|
|
|
512
495
|
"required": [
|
|
513
496
|
"paths"
|
|
514
497
|
],
|
|
515
|
-
"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 }"
|
|
516
501
|
},
|
|
517
502
|
"ManualLayoutsConfig": {
|
|
518
|
-
"id": "ManualLayoutsConfig",
|
|
519
|
-
"description": "Configuration for manual layouts",
|
|
520
503
|
"type": "object",
|
|
521
504
|
"properties": {
|
|
522
505
|
"outDir": {
|
|
523
|
-
"description": "Path to the directory where manual layouts will be stored,\nrelative to the folder containing the project config. \n\nDefaults to '.likec4'.",
|
|
524
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'.",
|
|
525
508
|
"type": "string"
|
|
526
509
|
}
|
|
527
510
|
},
|
|
528
|
-
"additionalProperties": false
|
|
511
|
+
"additionalProperties": false,
|
|
512
|
+
"id": "ManualLayoutsConfig",
|
|
513
|
+
"description": "Configuration for manual layouts"
|
|
529
514
|
},
|
|
530
515
|
"LandingPageConfig": {
|
|
531
|
-
"id": "LandingPageConfig",
|
|
532
|
-
"description": "Configure the landing page. Use redirect to go to the index view, or include/exclude to filter the view grid.",
|
|
533
516
|
"anyOf": [
|
|
534
517
|
{
|
|
535
518
|
"type": "object",
|
|
@@ -578,7 +561,9 @@
|
|
|
578
561
|
],
|
|
579
562
|
"additionalProperties": false
|
|
580
563
|
}
|
|
581
|
-
]
|
|
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."
|
|
582
567
|
}
|
|
583
568
|
}
|
|
584
569
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Licenses of Bundled Dependencies
|
|
2
2
|
|
|
3
3
|
The published artifact additionally contains code with the following licenses:
|
|
4
|
-
Apache-2.0, BSD-
|
|
4
|
+
Apache-2.0, BSD-3-Clause, ISC, MIT, (MIT AND Zlib)
|
|
5
5
|
|
|
6
6
|
# Bundled Dependencies
|
|
7
7
|
|
|
@@ -262,11 +262,11 @@ Repository: https://github.com/honojs/node-server
|
|
|
262
262
|
|
|
263
263
|
---------------------------------------
|
|
264
264
|
|
|
265
|
-
## @likec4/config, @likec4/generators, @likec4/language-services, @likec4/layouts, @likec4/log
|
|
265
|
+
## @likec4/config, @likec4/generators, @likec4/language-services, @likec4/layouts, @likec4/log, @likec4/mcp
|
|
266
266
|
|
|
267
267
|
License: MIT
|
|
268
268
|
By: Denis Davydkov
|
|
269
|
-
Repositories: https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4
|
|
269
|
+
Repositories: https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4, https://github.com/likec4/likec4
|
|
270
270
|
|
|
271
271
|
> MIT License
|
|
272
272
|
>
|
|
@@ -1000,72 +1000,6 @@ Repository: https://github.com/isaacs/isexe
|
|
|
1000
1000
|
|
|
1001
1001
|
---------------------------------------
|
|
1002
1002
|
|
|
1003
|
-
## json-schema-typed
|
|
1004
|
-
|
|
1005
|
-
License: BSD-2-Clause
|
|
1006
|
-
By: Remy Rylan
|
|
1007
|
-
Repository: https://github.com/RemyRylan/json-schema-typed
|
|
1008
|
-
|
|
1009
|
-
> BSD 2-Clause License
|
|
1010
|
-
>
|
|
1011
|
-
> Original source code is copyright (c) 2019-2025 Remy Rylan
|
|
1012
|
-
> <https://github.com/RemyRylan>
|
|
1013
|
-
>
|
|
1014
|
-
> All JSON Schema documentation and descriptions are copyright (c):
|
|
1015
|
-
>
|
|
1016
|
-
> 2009 [draft-0] IETF Trust <https://www.ietf.org/>, Kris Zyp <kris@sitepen.com>,
|
|
1017
|
-
> and SitePen (USA) <https://www.sitepen.com/>.
|
|
1018
|
-
>
|
|
1019
|
-
> 2009 [draft-1] IETF Trust <https://www.ietf.org/>, Kris Zyp <kris@sitepen.com>,
|
|
1020
|
-
> and SitePen (USA) <https://www.sitepen.com/>.
|
|
1021
|
-
>
|
|
1022
|
-
> 2010 [draft-2] IETF Trust <https://www.ietf.org/>, Kris Zyp <kris@sitepen.com>,
|
|
1023
|
-
> and SitePen (USA) <https://www.sitepen.com/>.
|
|
1024
|
-
>
|
|
1025
|
-
> 2010 [draft-3] IETF Trust <https://www.ietf.org/>, Kris Zyp <kris@sitepen.com>,
|
|
1026
|
-
> Gary Court <gary.court@gmail.com>, and SitePen (USA) <https://www.sitepen.com/>.
|
|
1027
|
-
>
|
|
1028
|
-
> 2013 [draft-4] IETF Trust <https://www.ietf.org/>), Francis Galiegue
|
|
1029
|
-
> <fgaliegue@gmail.com>, Kris Zyp <kris@sitepen.com>, Gary Court
|
|
1030
|
-
> <gary.court@gmail.com>, and SitePen (USA) <https://www.sitepen.com/>.
|
|
1031
|
-
>
|
|
1032
|
-
> 2018 [draft-7] IETF Trust <https://www.ietf.org/>, Austin Wright <aaa@bzfx.net>,
|
|
1033
|
-
> Henry Andrews <henry@cloudflare.com>, Geraint Luff <luffgd@gmail.com>, and
|
|
1034
|
-
> Cloudflare, Inc. <https://www.cloudflare.com/>.
|
|
1035
|
-
>
|
|
1036
|
-
> 2019 [draft-2019-09] IETF Trust <https://www.ietf.org/>, Austin Wright
|
|
1037
|
-
> <aaa@bzfx.net>, Henry Andrews <andrews_henry@yahoo.com>, Ben Hutton
|
|
1038
|
-
> <bh7@sanger.ac.uk>, and Greg Dennis <gregsdennis@yahoo.com>.
|
|
1039
|
-
>
|
|
1040
|
-
> 2020 [draft-2020-12] IETF Trust <https://www.ietf.org/>, Austin Wright
|
|
1041
|
-
> <aaa@bzfx.net>, Henry Andrews <andrews_henry@yahoo.com>, Ben Hutton
|
|
1042
|
-
> <ben@jsonschema.dev>, and Greg Dennis <gregsdennis@yahoo.com>.
|
|
1043
|
-
>
|
|
1044
|
-
> All rights reserved.
|
|
1045
|
-
>
|
|
1046
|
-
> Redistribution and use in source and binary forms, with or without modification,
|
|
1047
|
-
> are permitted provided that the following conditions are met:
|
|
1048
|
-
>
|
|
1049
|
-
> 1. Redistributions of source code must retain the above copyright notice, this
|
|
1050
|
-
> list of conditions and the following disclaimer.
|
|
1051
|
-
>
|
|
1052
|
-
> 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
1053
|
-
> this list of conditions and the following disclaimer in the documentation
|
|
1054
|
-
> and/or other materials provided with the distribution.
|
|
1055
|
-
>
|
|
1056
|
-
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
1057
|
-
> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1058
|
-
> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1059
|
-
> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
1060
|
-
> ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1061
|
-
> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
1062
|
-
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
1063
|
-
> ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1064
|
-
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
1065
|
-
> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1066
|
-
|
|
1067
|
-
---------------------------------------
|
|
1068
|
-
|
|
1069
1003
|
## json5
|
|
1070
1004
|
|
|
1071
1005
|
License: MIT
|
package/dist/_chunks/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as input, a as ZodDefault, b as $strict, c as ZodLiteral, d as ZodOptional, f as ZodPipe, g as ZodUnion, h as ZodTransform, i as ZodCustom, l as ZodNumber, m as ZodString, n as ZodArray, o as ZodEnum, p as ZodRecord, r as ZodBoolean, s as ZodInt, t as ZodAny, u as ZodObject, v as output, x as $strip, y as $partial } from "./libs/zod.mjs";
|
|
2
2
|
import { DeploymentElementModel, DeploymentRelationModel, ElementModel, LikeC4Model, LikeC4ViewModel, RelationshipModel } from "@likec4/core/model";
|
|
3
3
|
import { LikeC4ProjectStylesConfig, LikeC4ProjectTheme, ProjectId, ThemeColorValues as ThemeColorValues$1, aux } from "@likec4/core/types";
|
|
4
4
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { n as ServerOptions, t as McpServer } from "./libs/@modelcontextprotocol/sdk.mjs";
|
|
2
1
|
import { a as LikeC4ProjectConfig, i as IncludeConfig, o as LikeC4ProjectConfigInput } from "./index.mjs";
|
|
3
2
|
import { $ as FileSystemProvider, A as DefaultValueConverter, B as AsyncDisposable, C as CodeLensParams, D as ValidationOptions, E as DefaultDocumentValidator, F as JSDocDocumentationProvider, G as Reference, H as AstNode, I as DefaultIndexManager, J as LangiumDocument, K as ReferenceInfo, L as ReferenceDescription, M as MaybePromise, N as DefaultScopeProvider, O as DiagnosticInfo, P as Scope, Q as FileSystemNode, R as DefaultNameProvider, S as CodeActionParams, T as DocumentSymbolParams, U as AstNodeDescription, V as Disposable$1, W as CstNode, X as PrecomputedScopes, Y as LangiumDocumentFactory, Z as Stream, _ as CodeLensProvider, _t as SymbolKind, a as LangiumServices, at as CodeAction, b as FileSelector, c as AbstractSemanticTokenProvider, ct as CompletionItemKind, d as AbstractFormatter, dt as DocumentLink, et as Keyword, f as FormattingRegion, ft as DocumentSymbol, g as DefaultDocumentHighlightProvider, gt as Range, h as DocumentLinkProvider, ht as Location, i as NextFeature, it as RequestType, j as ValueType, k as DefaultScopeComputation, l as SemanticTokenAcceptor, lt as Diagnostic, m as NodeKindProvider, mt as Hover, n as CompletionContext, nt as CancellationToken$1, o as LangiumSharedServices, ot as CodeLens, p as DocumentSymbolProvider, pt as FormattingOptions, q as DefaultLangiumDocuments, r as DefaultCompletionProvider, rt as NotificationType, s as DefaultWorkspaceSymbolProvider, st as Command, t as CompletionAcceptor, tt as URI, u as AstNodeHoverProvider, ut as DocumentHighlight, v as CodeActionProvider, vt as TextEdit, w as DocumentLinkParams, x as BuildOptions, y as DefaultWorkspaceManager, yt as WorkspaceFolder, z as WorkspaceCache } from "./libs/langium.mjs";
|
|
4
3
|
import { t as $keywords } from "./libs/ts-graphviz.mjs";
|
|
@@ -430,6 +429,11 @@ declare class ProjectsManager {
|
|
|
430
429
|
*/
|
|
431
430
|
static readonly DefaultProjectId: ProjectId$1;
|
|
432
431
|
constructor(services: LikeC4SharedServices);
|
|
432
|
+
/**
|
|
433
|
+
* Updates the workspace-level exclude patterns from VS Code settings.
|
|
434
|
+
* Called during initial server startup; dynamic changes restart the server.
|
|
435
|
+
*/
|
|
436
|
+
setWorkspaceExcludePatterns(patterns: string[] | undefined): void;
|
|
433
437
|
/**
|
|
434
438
|
* Returns:
|
|
435
439
|
* - configured default project ID if set
|
|
@@ -656,18 +660,6 @@ declare class LikeC4Formatter extends AbstractFormatter {
|
|
|
656
660
|
private getAutoQuoteStyle;
|
|
657
661
|
private onConfigurationUpdate;
|
|
658
662
|
} //#endregion
|
|
659
|
-
//#region src/mcp/types.d.ts
|
|
660
|
-
interface LikeC4MCPServer {
|
|
661
|
-
readonly mcp: McpServer;
|
|
662
|
-
readonly isStarted: boolean;
|
|
663
|
-
readonly port: number;
|
|
664
|
-
start(port?: number): Promise<void>;
|
|
665
|
-
stop(): Promise<void>;
|
|
666
|
-
}
|
|
667
|
-
interface LikeC4MCPServerFactory {
|
|
668
|
-
create(options?: ServerOptions): McpServer;
|
|
669
|
-
}
|
|
670
|
-
//#endregion
|
|
671
663
|
//#region src/generated/ast.d.ts
|
|
672
664
|
type AnyProperty = DynamicViewProperty | ElementProperty | NavigateToProperty | NotationProperty | NotesProperty | RelationProperty | RelationshipStyleProperty | StringProperty | StyleProperty | ViewProperty;
|
|
673
665
|
declare const AnyProperty = "AnyProperty";
|
|
@@ -2195,6 +2187,11 @@ declare class LikeC4WorkspaceManager extends DefaultWorkspaceManager {
|
|
|
2195
2187
|
* First load all project config files, then load all documents in the workspace.
|
|
2196
2188
|
*/
|
|
2197
2189
|
protected performStartup(folders: WorkspaceFolder[]): Promise<LangiumDocument[]>;
|
|
2190
|
+
/**
|
|
2191
|
+
* Read workspace exclude patterns from configuration before workspace scan.
|
|
2192
|
+
* Uses a timeout fallback for third-party IDEs that may not support workspace/configuration.
|
|
2193
|
+
*/
|
|
2194
|
+
private readExcludeConfig;
|
|
2198
2195
|
/**
|
|
2199
2196
|
* Load all additional documents that shall be visible in the context of the given workspace
|
|
2200
2197
|
* folders and add them to the collector. This can be used to include built-in libraries of
|
|
@@ -2513,8 +2510,6 @@ declare class LikeC4ModelLocator {
|
|
|
2513
2510
|
projectId?: c4.ProjectId | undefined;
|
|
2514
2511
|
}): Location | null;
|
|
2515
2512
|
} //#endregion
|
|
2516
|
-
//#region src/mcp/noop.d.ts
|
|
2517
|
-
//#endregion
|
|
2518
2513
|
//#region src/views/LikeC4Views.d.ts
|
|
2519
2514
|
type GraphvizOut = {
|
|
2520
2515
|
readonly dot: string;
|
|
@@ -3329,7 +3324,6 @@ interface LikeC4LanguageServices {
|
|
|
3329
3324
|
readonly workspaceUri: URI;
|
|
3330
3325
|
readonly projectsManager: ProjectsManager;
|
|
3331
3326
|
readonly editor: LikeC4ModelChanges;
|
|
3332
|
-
readonly mcpServer: LikeC4MCPServer | null;
|
|
3333
3327
|
/**
|
|
3334
3328
|
* Returns all projects with relevant documents
|
|
3335
3329
|
*/
|
|
@@ -3592,10 +3586,6 @@ interface LikeC4AddedServices {
|
|
|
3592
3586
|
DocumentValidator: LikeC4DocumentValidator;
|
|
3593
3587
|
};
|
|
3594
3588
|
Rpc: Rpc;
|
|
3595
|
-
mcp: {
|
|
3596
|
-
Server: LikeC4MCPServer;
|
|
3597
|
-
ServerFactory: LikeC4MCPServerFactory;
|
|
3598
|
-
};
|
|
3599
3589
|
likec4: {
|
|
3600
3590
|
LanguageServices: LikeC4LanguageServices;
|
|
3601
3591
|
Views: LikeC4Views;
|