@likec4/language-server 1.34.2 → 1.36.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/dist/bundled.mjs +2777 -2760
- package/dist/config/schema.d.ts +1 -0
- package/dist/config/schema.js +7 -0
- package/dist/generated/ast.d.ts +8 -7
- package/dist/generated/ast.js +1 -0
- package/dist/generated/grammar.d.ts +1 -1
- package/dist/generated/grammar.js +1 -1
- package/dist/generated/module.d.ts +1 -1
- package/dist/logger.js +4 -0
- package/dist/mcp/tools/list-projects.js +3 -0
- package/dist/mcp/tools/read-project-summary.js +3 -0
- package/dist/model/builder/MergedSpecification.d.ts +1 -1
- package/dist/model/builder/MergedSpecification.js +8 -0
- package/dist/model/builder/buildModel.d.ts +7 -1
- package/dist/model/builder/buildModel.js +8 -2
- package/dist/model/model-builder.js +2 -1
- package/dist/model/model-parser.d.ts +9 -9
- package/dist/model/parser/DeploymentModelParser.d.ts +1 -1
- package/dist/model/parser/DeploymentViewParser.d.ts +1 -1
- package/dist/model/parser/FqnRefParser.d.ts +1 -1
- package/dist/model/parser/GlobalsParser.d.ts +1 -1
- package/dist/model/parser/ImportsParser.d.ts +1 -1
- package/dist/model/parser/ModelParser.d.ts +1 -1
- package/dist/model/parser/PredicatesParser.d.ts +1 -1
- package/dist/model/parser/SpecificationParser.d.ts +2 -2
- package/dist/model/parser/SpecificationParser.js +18 -3
- package/dist/model/parser/ViewsParser.d.ts +1 -1
- package/dist/model/parser/ViewsParser.js +13 -3
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.js +1 -1
- package/dist/view-utils/resolve-relative-paths.js +1 -1
- package/dist/views/likec4-views.d.ts +29 -8
- package/dist/views/likec4-views.js +5 -6
- package/dist/workspace/IndexManager.d.ts +1 -1
- package/dist/workspace/IndexManager.js +1 -2
- package/package.json +17 -16
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const ProjectConfig: v.ObjectSchema<{
|
|
3
3
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "Project name cannot be empty">, v.ExcludesAction<string, "default", "Project name cannot be \"default\"">, v.ExcludesAction<string, ".", "Project name cannot contain \".\", try to use A-z, 0-9, _ and -">, v.ExcludesAction<string, "@", "Project name cannot contain \"@\", try to use A-z, 0-9, _ and -">, v.ExcludesAction<string, "#", "Project name cannot contain \"#\", try to use A-z, 0-9, _ and -">, v.DescriptionAction<string, "Project name, must be unique in the workspace">]>;
|
|
4
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "Project title cannot be empty if specified">, v.DescriptionAction<string, "A human readable title for the project">]>, undefined>;
|
|
4
5
|
readonly contactPerson: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "Contact person cannot be empty if specified">, v.DescriptionAction<string, "A person who has been involved in creating or maintaining this project">]>, undefined>;
|
|
5
6
|
readonly exclude: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string[], "List of file patterns to exclude from the project, default is [\"**/node_modules/**/*\"]">]>, undefined>;
|
|
6
7
|
}, undefined>;
|
package/dist/config/schema.js
CHANGED
|
@@ -10,6 +10,13 @@ export const ProjectConfig = v.object({
|
|
|
10
10
|
v.excludes("#", 'Project name cannot contain "#", try to use A-z, 0-9, _ and -'),
|
|
11
11
|
v.description("Project name, must be unique in the workspace")
|
|
12
12
|
),
|
|
13
|
+
title: v.optional(
|
|
14
|
+
v.pipe(
|
|
15
|
+
v.string(),
|
|
16
|
+
v.nonEmpty("Project title cannot be empty if specified"),
|
|
17
|
+
v.description("A human readable title for the project")
|
|
18
|
+
)
|
|
19
|
+
),
|
|
13
20
|
contactPerson: v.optional(
|
|
14
21
|
v.pipe(
|
|
15
22
|
v.string(),
|
package/dist/generated/ast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/******************************************************************************
|
|
2
|
-
* This file was generated by langium-cli 3.5.
|
|
2
|
+
* This file was generated by langium-cli 3.5.2.
|
|
3
3
|
* DO NOT EDIT MANUALLY!
|
|
4
4
|
******************************************************************************/
|
|
5
5
|
import * as langium from 'langium';
|
|
@@ -673,7 +673,7 @@ export interface LineProperty extends langium.AstNode {
|
|
|
673
673
|
export declare const LineProperty = "LineProperty";
|
|
674
674
|
export declare function isLineProperty(item: unknown): item is LineProperty;
|
|
675
675
|
export interface LinkProperty extends langium.AstNode {
|
|
676
|
-
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | ExtendDeploymentBody | ExtendElementBody | RelationBody;
|
|
676
|
+
readonly $container: DeployedInstanceBody | DeploymentNodeBody | DeploymentRelationBody | DeploymentViewBody | DynamicViewBody | ElementBody | ElementViewBody | ExtendDeploymentBody | ExtendElementBody | RelationBody | SpecificationDeploymentNodeKind | SpecificationElementKind;
|
|
677
677
|
readonly $type: 'LinkProperty';
|
|
678
678
|
key: 'link';
|
|
679
679
|
title?: string;
|
|
@@ -682,7 +682,7 @@ export interface LinkProperty extends langium.AstNode {
|
|
|
682
682
|
export declare const LinkProperty = "LinkProperty";
|
|
683
683
|
export declare function isLinkProperty(item: unknown): item is LinkProperty;
|
|
684
684
|
export interface MarkdownOrString extends langium.AstNode {
|
|
685
|
-
readonly $container: ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
|
|
685
|
+
readonly $container: ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
|
|
686
686
|
readonly $type: 'MarkdownOrString';
|
|
687
687
|
markdown?: string;
|
|
688
688
|
text?: string;
|
|
@@ -723,6 +723,7 @@ export declare function isModelDeployments(item: unknown): item is ModelDeployme
|
|
|
723
723
|
export interface ModelViews extends langium.AstNode {
|
|
724
724
|
readonly $container: LikeC4Grammar;
|
|
725
725
|
readonly $type: 'ModelViews';
|
|
726
|
+
folder?: string;
|
|
726
727
|
name: 'views';
|
|
727
728
|
styles: Array<ViewRuleStyleOrGlobalRef>;
|
|
728
729
|
views: Array<LikeC4View>;
|
|
@@ -902,7 +903,7 @@ export interface SpecificationDeploymentNodeKind extends langium.AstNode {
|
|
|
902
903
|
readonly $container: SpecificationRule;
|
|
903
904
|
readonly $type: 'SpecificationDeploymentNodeKind';
|
|
904
905
|
kind: DeploymentNodeKind;
|
|
905
|
-
props: Array<ElementStyleProperty | SpecificationElementStringProperty>;
|
|
906
|
+
props: Array<ElementStyleProperty | LinkProperty | SpecificationElementStringProperty>;
|
|
906
907
|
tags?: Tags;
|
|
907
908
|
}
|
|
908
909
|
export declare const SpecificationDeploymentNodeKind = "SpecificationDeploymentNodeKind";
|
|
@@ -911,7 +912,7 @@ export interface SpecificationElementKind extends langium.AstNode {
|
|
|
911
912
|
readonly $container: SpecificationRule;
|
|
912
913
|
readonly $type: 'SpecificationElementKind';
|
|
913
914
|
kind: ElementKind;
|
|
914
|
-
props: Array<ElementStyleProperty | SpecificationElementStringProperty>;
|
|
915
|
+
props: Array<ElementStyleProperty | LinkProperty | SpecificationElementStringProperty>;
|
|
915
916
|
tags?: Tags;
|
|
916
917
|
}
|
|
917
918
|
export declare const SpecificationElementKind = "SpecificationElementKind";
|
|
@@ -919,8 +920,8 @@ export declare function isSpecificationElementKind(item: unknown): item is Speci
|
|
|
919
920
|
export interface SpecificationElementStringProperty extends langium.AstNode {
|
|
920
921
|
readonly $container: SpecificationDeploymentNodeKind | SpecificationElementKind;
|
|
921
922
|
readonly $type: 'SpecificationElementStringProperty';
|
|
922
|
-
key: 'notation' | 'technology';
|
|
923
|
-
value:
|
|
923
|
+
key: 'description' | 'notation' | 'technology' | 'title';
|
|
924
|
+
value: MarkdownOrString;
|
|
924
925
|
}
|
|
925
926
|
export declare const SpecificationElementStringProperty = "SpecificationElementStringProperty";
|
|
926
927
|
export declare function isSpecificationElementStringProperty(item: unknown): item is SpecificationElementStringProperty;
|
package/dist/generated/ast.js
CHANGED
|
@@ -1552,6 +1552,7 @@ export class LikeC4AstReflection extends langium.AbstractAstReflection {
|
|
|
1552
1552
|
return {
|
|
1553
1553
|
name: ModelViews,
|
|
1554
1554
|
properties: [
|
|
1555
|
+
{ name: "folder" },
|
|
1555
1556
|
{ name: "name" },
|
|
1556
1557
|
{ name: "styles", defaultValue: [] },
|
|
1557
1558
|
{ name: "views", defaultValue: [] }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/******************************************************************************
|
|
2
|
-
* This file was generated by langium-cli 3.5.
|
|
2
|
+
* This file was generated by langium-cli 3.5.2.
|
|
3
3
|
* DO NOT EDIT MANUALLY!
|
|
4
4
|
******************************************************************************/
|
|
5
5
|
import type { Grammar } from 'langium';
|