@likec4/language-server 1.46.4 → 1.48.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/LICENSE +1 -1
- package/browser/package.json +2 -2
- package/browser-worker/package.json +2 -2
- package/bundled/package.json +4 -0
- package/dist/LikeC4LanguageServices.d.mts +4 -0
- package/dist/LikeC4LanguageServices.mjs +3 -0
- package/dist/_chunks/ConfigurableLayouter.mjs +1956 -0
- package/dist/_chunks/LikeC4LanguageServices.d.mts +1978 -0
- package/dist/_chunks/LikeC4LanguageServices.mjs +725 -0
- package/dist/_chunks/ast.d.mts +1444 -0
- package/dist/_chunks/ast.mjs +2375 -0
- package/dist/_chunks/ast2.mjs +176 -0
- package/dist/_chunks/common-exports.mjs +0 -0
- package/dist/_chunks/filesystem.mjs +58 -0
- package/dist/_chunks/grammar.mjs +8 -0
- package/dist/_chunks/icons.mjs +5211 -0
- package/dist/_chunks/libs/@hono/node-server.mjs +436 -0
- package/dist/_chunks/libs/@msgpack/msgpack.mjs +805 -0
- package/dist/_chunks/libs/eventemitter3.mjs +243 -0
- package/dist/_chunks/libs/fast-equals.mjs +446 -0
- package/dist/_chunks/libs/hono.mjs +1829 -0
- package/dist/_chunks/libs/p-queue.mjs +449 -0
- package/dist/_chunks/libs/parse-ms.mjs +36 -0
- package/dist/_chunks/libs/picomatch.mjs +1673 -0
- package/dist/_chunks/libs/pretty-ms.mjs +80 -0
- package/dist/_chunks/libs/remeda.mjs +482 -0
- package/dist/_chunks/libs/strip-indent.mjs +15 -0
- package/dist/_chunks/libs/ufo.mjs +166 -0
- package/dist/_chunks/likec4lib.mjs +9 -0
- package/dist/_chunks/mcp.mjs +33 -0
- package/dist/_chunks/module.mjs +28 -0
- package/dist/_chunks/module2.mjs +6576 -0
- package/dist/_chunks/protocol.d.mts +311 -0
- package/dist/_chunks/protocol.mjs +78 -0
- package/dist/_chunks/rolldown-runtime.mjs +42 -0
- package/dist/ast.d.mts +4 -0
- package/dist/ast.mjs +4 -0
- package/dist/browser-worker.d.mts +1 -0
- package/dist/browser-worker.mjs +6 -0
- package/dist/browser.d.mts +11 -0
- package/dist/browser.mjs +27 -0
- package/dist/bundled.d.mts +28 -0
- package/dist/bundled.mjs +51 -4681
- package/dist/common-exports.d.mts +4 -0
- package/dist/common-exports.mjs +5 -0
- package/dist/filesystem/index.d.mts +4 -0
- package/dist/filesystem/index.mjs +3 -0
- package/dist/generated/ast.d.mts +2 -0
- package/dist/generated/ast.mjs +3 -0
- package/dist/generated/grammar.d.mts +6 -0
- package/dist/generated/grammar.mjs +3 -0
- package/dist/generated/module.d.mts +14 -0
- package/dist/generated/module.mjs +3 -0
- package/dist/generated-lib/icons.d.mts +4 -0
- package/dist/generated-lib/icons.mjs +3 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +48 -0
- package/dist/likec4lib.d.mts +9 -0
- package/dist/likec4lib.mjs +4 -0
- package/dist/mcp/index.d.mts +4 -0
- package/dist/mcp/index.mjs +3 -0
- package/dist/module.d.mts +4 -0
- package/dist/module.mjs +3 -0
- package/dist/protocol.d.mts +2 -0
- package/dist/protocol.mjs +3 -0
- package/likec4lib/package.json +2 -2
- package/package.json +106 -62
- package/protocol/package.json +2 -2
- package/dist/LikeC4LanguageServices.d.ts +0 -109
- package/dist/LikeC4LanguageServices.js +0 -154
- package/dist/Rpc.d.ts +0 -9
- package/dist/Rpc.js +0 -270
- package/dist/ast.d.ts +0 -226
- package/dist/ast.js +0 -264
- package/dist/browser-worker.d.ts +0 -1
- package/dist/browser-worker.js +0 -4
- package/dist/browser.d.ts +0 -11
- package/dist/browser.js +0 -35
- package/dist/bundled.d.ts +0 -8
- package/dist/bundled.js +0 -44
- package/dist/documentation/documentation-provider.d.ts +0 -8
- package/dist/documentation/documentation-provider.js +0 -51
- package/dist/documentation/index.d.ts +0 -1
- package/dist/documentation/index.js +0 -1
- package/dist/empty.d.ts +0 -2
- package/dist/empty.js +0 -2
- package/dist/filesystem/ChokidarWatcher.d.ts +0 -16
- package/dist/filesystem/ChokidarWatcher.js +0 -108
- package/dist/filesystem/FileSystemWatcher.d.ts +0 -19
- package/dist/filesystem/FileSystemWatcher.js +0 -14
- package/dist/filesystem/LikeC4FileSystem.d.ts +0 -3
- package/dist/filesystem/LikeC4FileSystem.js +0 -130
- package/dist/filesystem/index.d.ts +0 -55
- package/dist/filesystem/index.js +0 -29
- package/dist/formatting/LikeC4Formatter.d.ts +0 -59
- package/dist/formatting/LikeC4Formatter.js +0 -637
- package/dist/formatting/utils.d.ts +0 -6
- package/dist/formatting/utils.js +0 -18
- package/dist/generated/ast.d.ts +0 -1411
- package/dist/generated/ast.js +0 -2207
- package/dist/generated/grammar.d.ts +0 -6
- package/dist/generated/grammar.js +0 -7
- package/dist/generated/module.d.ts +0 -14
- package/dist/generated/module.js +0 -27
- package/dist/generated-lib/icons.d.ts +0 -1
- package/dist/generated-lib/icons.js +0 -18
- package/dist/index.d.ts +0 -38
- package/dist/index.js +0 -55
- package/dist/likec4lib.d.ts +0 -6
- package/dist/likec4lib.js +0 -7
- package/dist/logger.d.ts +0 -17
- package/dist/logger.js +0 -81
- package/dist/lsp/CodeActionProvider.d.ts +0 -14
- package/dist/lsp/CodeActionProvider.js +0 -33
- package/dist/lsp/CodeLensProvider.d.ts +0 -9
- package/dist/lsp/CodeLensProvider.js +0 -44
- package/dist/lsp/CompletionProvider.d.ts +0 -11
- package/dist/lsp/CompletionProvider.js +0 -200
- package/dist/lsp/DocumentHighlightProvider.d.ts +0 -9
- package/dist/lsp/DocumentHighlightProvider.js +0 -10
- package/dist/lsp/DocumentLinkProvider.d.ts +0 -11
- package/dist/lsp/DocumentLinkProvider.js +0 -58
- package/dist/lsp/DocumentSymbolProvider.d.ts +0 -33
- package/dist/lsp/DocumentSymbolProvider.js +0 -317
- package/dist/lsp/HoverProvider.d.ts +0 -10
- package/dist/lsp/HoverProvider.js +0 -106
- package/dist/lsp/RenameProvider.d.ts +0 -5
- package/dist/lsp/RenameProvider.js +0 -6
- package/dist/lsp/SemanticTokenProvider.d.ts +0 -12
- package/dist/lsp/SemanticTokenProvider.js +0 -264
- package/dist/lsp/index.d.ts +0 -8
- package/dist/lsp/index.js +0 -9
- package/dist/mcp/MCPServerFactory.d.ts +0 -8
- package/dist/mcp/MCPServerFactory.js +0 -73
- package/dist/mcp/NoopLikeC4MCPServer.d.ts +0 -9
- package/dist/mcp/NoopLikeC4MCPServer.js +0 -17
- package/dist/mcp/interfaces.d.ts +0 -13
- package/dist/mcp/interfaces.js +0 -5
- package/dist/mcp/server/StdioLikeC4MCPServer.d.ts +0 -16
- package/dist/mcp/server/StdioLikeC4MCPServer.js +0 -51
- package/dist/mcp/server/StreamableLikeC4MCPServer.d.ts +0 -16
- package/dist/mcp/server/StreamableLikeC4MCPServer.js +0 -145
- package/dist/mcp/server/WithMCPServer.d.ts +0 -4
- package/dist/mcp/server/WithMCPServer.js +0 -54
- package/dist/mcp/tools/_common.d.ts +0 -88
- package/dist/mcp/tools/_common.js +0 -49
- package/dist/mcp/tools/find-relationships.d.ts +0 -12
- package/dist/mcp/tools/find-relationships.js +0 -150
- package/dist/mcp/tools/list-projects.d.ts +0 -6
- package/dist/mcp/tools/list-projects.js +0 -62
- package/dist/mcp/tools/open-view.d.ts +0 -10
- package/dist/mcp/tools/open-view.js +0 -52
- package/dist/mcp/tools/read-deployment.d.ts +0 -10
- package/dist/mcp/tools/read-deployment.js +0 -150
- package/dist/mcp/tools/read-element.d.ts +0 -10
- package/dist/mcp/tools/read-element.js +0 -218
- package/dist/mcp/tools/read-project-summary.d.ts +0 -8
- package/dist/mcp/tools/read-project-summary.js +0 -176
- package/dist/mcp/tools/read-view.d.ts +0 -10
- package/dist/mcp/tools/read-view.js +0 -203
- package/dist/mcp/tools/search-element.d.ts +0 -8
- package/dist/mcp/tools/search-element.js +0 -177
- package/dist/mcp/utils.d.ts +0 -18
- package/dist/mcp/utils.js +0 -48
- package/dist/model/builder/MergedExtends.d.ts +0 -13
- package/dist/model/builder/MergedExtends.js +0 -74
- package/dist/model/builder/MergedSpecification.d.ts +0 -32
- package/dist/model/builder/MergedSpecification.js +0 -175
- package/dist/model/builder/buildModel.d.ts +0 -16
- package/dist/model/builder/buildModel.js +0 -245
- package/dist/model/deployments-index.d.ts +0 -10
- package/dist/model/deployments-index.js +0 -102
- package/dist/model/fqn-index.d.ts +0 -61
- package/dist/model/fqn-index.js +0 -253
- package/dist/model/index.d.ts +0 -6
- package/dist/model/index.js +0 -6
- package/dist/model/model-builder.d.ts +0 -52
- package/dist/model/model-builder.js +0 -224
- package/dist/model/model-locator.d.ts +0 -39
- package/dist/model/model-locator.js +0 -240
- package/dist/model/model-parser-where.d.ts +0 -4
- package/dist/model/model-parser-where.js +0 -81
- package/dist/model/model-parser.d.ts +0 -645
- package/dist/model/model-parser.js +0 -133
- package/dist/model/parser/Base.d.ts +0 -69
- package/dist/model/parser/Base.js +0 -372
- package/dist/model/parser/DeploymentModelParser.d.ts +0 -71
- package/dist/model/parser/DeploymentModelParser.js +0 -176
- package/dist/model/parser/DeploymentViewParser.d.ts +0 -75
- package/dist/model/parser/DeploymentViewParser.js +0 -86
- package/dist/model/parser/FqnRefParser.d.ts +0 -66
- package/dist/model/parser/FqnRefParser.js +0 -382
- package/dist/model/parser/GlobalsParser.d.ts +0 -109
- package/dist/model/parser/GlobalsParser.js +0 -84
- package/dist/model/parser/ImportsParser.d.ts +0 -46
- package/dist/model/parser/ImportsParser.js +0 -24
- package/dist/model/parser/ModelParser.d.ts +0 -71
- package/dist/model/parser/ModelParser.js +0 -209
- package/dist/model/parser/PredicatesParser.d.ts +0 -75
- package/dist/model/parser/PredicatesParser.js +0 -45
- package/dist/model/parser/SpecificationParser.d.ts +0 -53
- package/dist/model/parser/SpecificationParser.js +0 -113
- package/dist/model/parser/ValueConverter.d.ts +0 -4
- package/dist/model/parser/ValueConverter.js +0 -12
- package/dist/model/parser/ViewsParser.d.ts +0 -112
- package/dist/model/parser/ViewsParser.js +0 -492
- package/dist/model-change/ModelChanges.d.ts +0 -18
- package/dist/model-change/ModelChanges.js +0 -129
- package/dist/model-change/changeElementStyle.d.ts +0 -16
- package/dist/model-change/changeElementStyle.js +0 -134
- package/dist/model-change/changeViewLayout.d.ts +0 -12
- package/dist/model-change/changeViewLayout.js +0 -28
- package/dist/model-change/removeManualLayoutV1.d.ts +0 -7
- package/dist/model-change/removeManualLayoutV1.js +0 -27
- package/dist/module.d.ts +0 -92
- package/dist/module.js +0 -143
- package/dist/protocol.d.ts +0 -284
- package/dist/protocol.js +0 -123
- package/dist/references/index.d.ts +0 -3
- package/dist/references/index.js +0 -3
- package/dist/references/name-provider.d.ts +0 -9
- package/dist/references/name-provider.js +0 -37
- package/dist/references/scope-computation.d.ts +0 -20
- package/dist/references/scope-computation.js +0 -288
- package/dist/references/scope-provider.d.ts +0 -40
- package/dist/references/scope-provider.js +0 -239
- package/dist/shared/NodeKindProvider.d.ts +0 -15
- package/dist/shared/NodeKindProvider.js +0 -57
- package/dist/shared/WorkspaceSymbolProvider.d.ts +0 -3
- package/dist/shared/WorkspaceSymbolProvider.js +0 -3
- package/dist/shared/index.d.ts +0 -2
- package/dist/shared/index.js +0 -2
- package/dist/test/index.d.ts +0 -1
- package/dist/test/index.js +0 -1
- package/dist/test/testServices.d.ts +0 -64
- package/dist/test/testServices.js +0 -210
- package/dist/utils/disposable.d.ts +0 -8
- package/dist/utils/disposable.js +0 -26
- package/dist/utils/elementRef.d.ts +0 -11
- package/dist/utils/elementRef.js +0 -27
- package/dist/utils/fqnRef.d.ts +0 -11
- package/dist/utils/fqnRef.js +0 -63
- package/dist/utils/index.d.ts +0 -11
- package/dist/utils/index.js +0 -35
- package/dist/utils/printDocs.d.ts +0 -2
- package/dist/utils/printDocs.js +0 -1
- package/dist/utils/projectId.d.ts +0 -4
- package/dist/utils/projectId.js +0 -16
- package/dist/utils/stringHash.d.ts +0 -1
- package/dist/utils/stringHash.js +0 -5
- package/dist/validation/DocumentValidator.d.ts +0 -11
- package/dist/validation/DocumentValidator.js +0 -17
- package/dist/validation/_shared.d.ts +0 -3
- package/dist/validation/_shared.js +0 -26
- package/dist/validation/deployment-checks.d.ts +0 -7
- package/dist/validation/deployment-checks.js +0 -140
- package/dist/validation/dynamic-view.d.ts +0 -6
- package/dist/validation/dynamic-view.js +0 -67
- package/dist/validation/element-ref.d.ts +0 -4
- package/dist/validation/element-ref.js +0 -12
- package/dist/validation/element.d.ts +0 -4
- package/dist/validation/element.js +0 -49
- package/dist/validation/imports.d.ts +0 -4
- package/dist/validation/imports.js +0 -46
- package/dist/validation/index.d.ts +0 -15
- package/dist/validation/index.js +0 -167
- package/dist/validation/property-checks.d.ts +0 -7
- package/dist/validation/property-checks.js +0 -108
- package/dist/validation/relation.d.ts +0 -6
- package/dist/validation/relation.js +0 -141
- package/dist/validation/specification.d.ts +0 -12
- package/dist/validation/specification.js +0 -190
- package/dist/validation/view-checks.d.ts +0 -4
- package/dist/validation/view-checks.js +0 -46
- package/dist/validation/view-predicates/fqn-expr-with.d.ts +0 -4
- package/dist/validation/view-predicates/fqn-expr-with.js +0 -43
- package/dist/validation/view-predicates/fqn-ref-expr.d.ts +0 -4
- package/dist/validation/view-predicates/fqn-ref-expr.js +0 -51
- package/dist/validation/view-predicates/incoming.d.ts +0 -4
- package/dist/validation/view-predicates/incoming.js +0 -16
- package/dist/validation/view-predicates/index.d.ts +0 -6
- package/dist/validation/view-predicates/index.js +0 -6
- package/dist/validation/view-predicates/outgoing.d.ts +0 -4
- package/dist/validation/view-predicates/outgoing.js +0 -20
- package/dist/validation/view-predicates/relation-expr.d.ts +0 -4
- package/dist/validation/view-predicates/relation-expr.js +0 -46
- package/dist/validation/view-predicates/relation-with.d.ts +0 -4
- package/dist/validation/view-predicates/relation-with.js +0 -16
- package/dist/validation/view.d.ts +0 -4
- package/dist/validation/view.js +0 -42
- package/dist/view-utils/assignNavigateTo.d.ts +0 -2
- package/dist/view-utils/assignNavigateTo.js +0 -27
- package/dist/view-utils/index.d.ts +0 -2
- package/dist/view-utils/index.js +0 -2
- package/dist/view-utils/manual-layout.d.ts +0 -13
- package/dist/view-utils/manual-layout.js +0 -149
- package/dist/views/ConfigurableLayouter.d.ts +0 -7
- package/dist/views/ConfigurableLayouter.js +0 -51
- package/dist/views/LikeC4ManualLayouts.d.ts +0 -42
- package/dist/views/LikeC4ManualLayouts.js +0 -209
- package/dist/views/LikeC4Views.d.ts +0 -89
- package/dist/views/LikeC4Views.js +0 -216
- package/dist/views/index.d.ts +0 -4
- package/dist/views/index.js +0 -11
- package/dist/workspace/AstNodeDescriptionProvider.d.ts +0 -7
- package/dist/workspace/AstNodeDescriptionProvider.js +0 -18
- package/dist/workspace/IndexManager.d.ts +0 -10
- package/dist/workspace/IndexManager.js +0 -26
- package/dist/workspace/LangiumDocuments.d.ts +0 -25
- package/dist/workspace/LangiumDocuments.js +0 -98
- package/dist/workspace/ProjectsManager.d.ts +0 -130
- package/dist/workspace/ProjectsManager.js +0 -605
- package/dist/workspace/WorkspaceManager.d.ts +0 -31
- package/dist/workspace/WorkspaceManager.js +0 -132
- package/dist/workspace/index.d.ts +0 -5
- package/dist/workspace/index.js +0 -5
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./_chunks/ast.mjs";
|
|
2
|
+
import { J as LanguageServicesContext, Q as createLanguageServices, X as LikeC4Services, Y as LikeC4AddedServices, Z as LikeC4SharedServices, _t as LikeC4ManualLayoutsModuleContext, bt as ProjectsManager, ct as NoFileSystem, d as LikeC4ModelBuilder, f as FqnIndex, ft as FileSystemModuleContext, gt as LikeC4ManualLayouts, ht as FileSystemWatcherModuleContext, i as LikeC4ModelParser, l as LikeC4ModelLocator, lt as NoFileSystemWatcher, mt as FileSystemWatcher, n as LikeC4LanguageServices, nt as NoMCPServer, ot as LikeC4WorkspaceManager, pt as FileSystemProvider, r as DocumentParser, st as LangiumDocuments, tt as LikeC4Views, u as ViewLocateResult, ut as NoLikeC4ManualLayouts, vt as Project, yt as ProjectData } from "./_chunks/LikeC4LanguageServices.mjs";
|
|
3
|
+
import "./_chunks/protocol.mjs";
|
|
4
|
+
export { DocumentParser, FileSystemModuleContext, FileSystemProvider, FileSystemWatcher, FileSystemWatcherModuleContext, FqnIndex, LangiumDocuments, LanguageServicesContext, LikeC4AddedServices, LikeC4LanguageServices, LikeC4ManualLayouts, LikeC4ManualLayoutsModuleContext, LikeC4ModelBuilder, LikeC4ModelLocator, LikeC4ModelParser, LikeC4Services, LikeC4SharedServices, LikeC4Views, LikeC4WorkspaceManager, NoFileSystem, NoFileSystemWatcher, NoLikeC4ManualLayouts, NoMCPServer, Project, ProjectData, ProjectsManager, ViewLocateResult, createLanguageServices };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n as NoFileSystemWatcher, r as NoLikeC4ManualLayouts, t as NoFileSystem } from "./_chunks/filesystem.mjs";
|
|
2
|
+
import { t as createLanguageServices } from "./_chunks/module2.mjs";
|
|
3
|
+
import { t as NoMCPServer } from "./_chunks/mcp.mjs";
|
|
4
|
+
|
|
5
|
+
export { NoFileSystem, NoFileSystemWatcher, NoLikeC4ManualLayouts, NoMCPServer, createLanguageServices };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../_chunks/ast.mjs";
|
|
2
|
+
import { _t as LikeC4ManualLayoutsModuleContext, ct as NoFileSystem, dt as FileNode, ft as FileSystemModuleContext, gt as LikeC4ManualLayouts, ht as FileSystemWatcherModuleContext, lt as NoFileSystemWatcher, mt as FileSystemWatcher, pt as FileSystemProvider, ut as NoLikeC4ManualLayouts } from "../_chunks/LikeC4LanguageServices.mjs";
|
|
3
|
+
import "../_chunks/protocol.mjs";
|
|
4
|
+
export { FileNode, FileSystemModuleContext, FileSystemProvider, FileSystemWatcher, FileSystemWatcherModuleContext, LikeC4ManualLayouts, LikeC4ManualLayoutsModuleContext, NoFileSystem, NoFileSystemWatcher, NoLikeC4ManualLayouts };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as ElementViewRef, $a as isRelationshipStyleProperty, $i as isGlobals, $n as ViewLayoutDirection, $r as isDeploymentViewRule, $t as MetadataBody, A as DynamicView, Aa as isNavigateToProperty, Ai as isExpressions, An as RelationshipStyleProperty, Ao as isViewRulePredicate, Ar as isAbstractDynamicStep, At as IconProperty, B as DynamicViewStep, Ba as isRelation, Bi as isFqnExprOrWhere, Bn as SpecificationRelationshipStringProperty, Bo as isWhereElementTag, Br as isCustomElementProperties, Bt as LikeC4Grammar, C as DeploymentViewBody, Ca as isMetadataProperty, Ci as isElementStringProperty, Cn as RelationExprWith, Co as isViewProperty, Cr as WhereRelationNegation, Ct as GlobalStyleId, D as DirectedRelationExpr, Da as isModelReferenceable, Di as isElementViewBody, Dn as RelationStringProperty, Do as isViewRuleGlobalPredicateRef, Dr as WhereTagEqual, Dt as IconId, E as DeploymentViewRuleStyle, Ea as isModelDeployments, Ei as isElementView, En as RelationProperty, Eo as isViewRuleAutoLayout, Er as WhereRelationTag, Et as IconColorProperty, F as DynamicViewIncludePredicate, Fa as isPaddingSizeProperty, Fi as isExtendElementProperty, Fn as SpecificationColor, Fo as isWhereBinaryExpression, Fr as isBorderStyleValue, Ft as InOutRelationExpr, G as ElementProperty, Ga as isRelationExprWhere, Gi as isFqnRef, Gn as StringProperty, Go as isWhereRelationKind, Gr as isDeploymentNode, Gt as LikeC4TokenNames, H as ElementBody, Ha as isRelationExpr, Hi as isFqnExprWhere, Hn as SpecificationTag, Ho as isWhereKindEqual, Hr as isDeployedInstance, Ht as LikeC4Lib, I as DynamicViewParallelSteps, Ia as isParticipant, Ii as isExtendRelation, In as SpecificationDeploymentNodeKind, Io as isWhereElement, Ir as isColorLiteral, It as IncomingRelationExpr, J as ElementStringProperty, Ja as isRelationNavigateToProperty, Ji as isGlobalDynamicPredicateGroup, Jn as TagRef, Jo as isWhereRelationParticipantTag, Jr as isDeploymentNodeOrElementKind, Jt as LineProperty, K as ElementRef, Ka as isRelationExprWith, Ki as isFqnRefExpr, Kn as StyleProperty, Ko as isWhereRelationNegation, Kr as isDeploymentNodeBody, Kt as LikeC4View, L as DynamicViewProperty, La as isRGBAColor, Li as isExtendRelationBody, Ln as SpecificationElementKind, Lo as isWhereElementExpression, Lr as isColorProperty, Lt as LibIcon, M as DynamicViewDisplayVariantProperty, Ma as isNotesProperty, Mi as isExtendDeploymentBody, Mn as ShapeSizeProperty, Mo as isViewRuleStyle, Mr as isArrowProperty, Mt as Id, N as DynamicViewDisplayVariantValue, Na as isOpacityProperty, Ni as isExtendElement, Nn as SizeProperty, No as isViewRuleStyleOrGlobalRef, Nr as isArrowType, Nt as Imported, O as DynamicStepChain, Oa as isModelViews, Oi as isElementViewRef, On as RelationStyleProperty, Oo as isViewRuleGlobalStyle, Or as WildcardExpression, Ot as IconPositionProperty, P as DynamicViewGlobalPredicateRef, Pa as isOutgoingRelationExpr, Pi as isExtendElementBody, Pn as SizeValue, Po as isViewStringProperty, Pr as isBorderProperty, Pt as ImportsFromPoject, Q as ElementViewBody, Qa as isRelationshipKind, Qi as isGlobalStyleId, Qn as Uri, Qo as reflection, Qr as isDeploymentViewBody, Qt as MetadataAttribute, R as DynamicViewRef, Ra as isRankValue, Ri as isExtendRelationProperty, Rn as SpecificationElementStringProperty, Ro as isWhereElementKind, Rr as isCustomColor, Rt as LikeC4AstReflection, S as DeploymentView, Sa as isMetadataBody, Si as isElementShape, Sn as RelationExprWhere, So as isViewLayoutDirection, Sr as WhereRelationKind, St as GlobalStyleGroup, T as DeploymentViewRulePredicate, Ta as isModel, Ti as isElementTagExpression, Tn as RelationNavigateToProperty, To as isViewRule, Tr as WhereRelationParticipantTag, Tt as HexColor, U as ElementKind, Ua as isRelationExprOrWhere, Ui as isFqnExprWith, Un as StrictFqnElementRef, Uo as isWhereRelation, Ur as isDeployedInstanceBody, Ut as LikeC4TerminalNames, V as Element, Va as isRelationBody, Vi as isFqnExprOrWith, Vn as SpecificationRule, Vo as isWhereExpression, Vr as isCustomRelationProperties, Vt as LikeC4KeywordNames, W as ElementKindExpression, Wa as isRelationExprOrWith, Wi as isFqnExpressions, Wn as StrictFqnRef, Wo as isWhereRelationExpression, Wr as isDeploymentElement, Wt as LikeC4Terminals, X as ElementTagExpression, Xa as isRelationStringProperty, Xi as isGlobalStyle, Xn as TextSizeProperty, Xo as isWhereTagEqual, Xr as isDeploymentRelationBody, Xt as MarkdownOrString, Y as ElementStyleProperty, Ya as isRelationProperty, Yi as isGlobalPredicateGroup, Yn as Tags, Yo as isWhereRelationTag, Yr as isDeploymentRelation, Yt as LinkProperty, Z as ElementView, Za as isRelationStyleProperty, Zi as isGlobalStyleGroup, Zn as ThemeColor, Zo as isWildcardExpression, Zr as isDeploymentView, Zt as MetadataArray, _ as DeploymentNodeBody, _a as isLineProperty, _i as isElementBody, _n as Relation, _o as isTagRef, _r as WhereElementTag, _t as FqnRefExpr, a as BorderProperty, aa as isIconProperty, ai as isDynamicView, an as ModelViews, ao as isSpecificationDeploymentNodeKind, ar as ViewRuleGlobalStyle, at as ExtendElementBody, b as DeploymentRelation, ba as isMetadataArray, bi as isElementProperty, bn as RelationExprOrWhere, bo as isThemeColor, br as WhereRelation, bt as GlobalPredicateGroup, c as ColorProperty, ca as isImported, ci as isDynamicViewDisplayVariantValue, cn as NotationProperty, co as isSpecificationRelationshipKind, cr as ViewRuleRank, ct as ExtendRelationBody, d as CustomElementProperties, da as isIncomingRelationExpr, di as isDynamicViewParallelSteps, dn as OutgoingRelationExpr, do as isSpecificationTag, dr as ViewStringProperty, dt as FqnExprOrWhere, ea as isHexColor, ei as isDeploymentViewRulePredicate, en as MetadataProperty, eo as isShapeProperty, er as ViewProperty, et as ExpressionV2, f as CustomRelationProperties, fa as isLibIcon, fi as isDynamicViewProperty, fn as PaddingSizeProperty, fo as isStrictFqnElementRef, fr as WhereBinaryExpression, ft as FqnExprOrWith, g as DeploymentNode, ga as isLineOptions, gi as isElement, gn as Referenceable, go as isTag, gr as WhereElementNegation, gt as FqnRef, h as DeploymentElement, ha as isLikeC4View, hi as isDynamicViewStep, hn as RankValue, ho as isStyleProperty, hr as WhereElementKind, ht as FqnExpressions, i as ArrowType, ia as isIconPositionValue, ii as isDynamicStepSingle, in as ModelReferenceable, io as isSpecificationColor, ir as ViewRuleGlobalPredicateRef, it as ExtendElement, j as DynamicViewBody, ja as isNotationProperty, ji as isExtendDeployment, jn as ShapeProperty, jo as isViewRuleRank, jr as isAnyProperty, jt as IconSizeProperty, k as DynamicStepSingle, ka as isMultipleProperty, ki as isExpressionV2, kn as RelationshipKind, ko as isViewRuleGroup, kt as IconPositionValue, l as CustomColor, la as isImportsFromPoject, li as isDynamicViewGlobalPredicateRef, ln as NotesProperty, lo as isSpecificationRelationshipStringProperty, lr as ViewRuleStyle, lt as ExtendRelationProperty, m as DeployedInstanceBody, ma as isLikeC4Lib, mi as isDynamicViewRule, mn as RGBAColor, mo as isStringProperty, mr as WhereElementExpression, mt as FqnExprWith, n as AnyProperty, na as isIconId, ni as isDirectedRelationExpr, nn as Model, no as isSizeProperty, nr as ViewRule, nt as ExtendDeployment, o as BorderStyleValue, oa as isIconSizeProperty, oi as isDynamicViewBody, on as MultipleProperty, oo as isSpecificationElementKind, or as ViewRuleGroup, ot as ExtendElementProperty, p as DeployedInstance, pa as isLikeC4Grammar, pi as isDynamicViewRef, pn as Participant, po as isStrictFqnRef, pr as WhereElement, pt as FqnExprWhere, q as ElementShape, qa as isRelationKindDotRef, qi as isFqnReferenceable, qn as Tag, qo as isWhereRelationParticipantKind, qr as isDeploymentNodeKind, qt as LineOptions, r as ArrowProperty, ra as isIconPositionProperty, ri as isDynamicStepChain, rn as ModelDeployments, ro as isSizeValue, rr as ViewRuleAutoLayout, rt as ExtendDeploymentBody, s as ColorLiteral, sa as isId, si as isDynamicViewDisplayVariantProperty, sn as NavigateToProperty, so as isSpecificationElementStringProperty, sr as ViewRulePredicate, st as ExtendRelation, t as AbstractDynamicStep, ta as isIconColorProperty, ti as isDeploymentViewRuleStyle, tn as MetadataValue, to as isShapeSizeProperty, tr as ViewRef, tt as Expressions, u as CustomColorId, ua as isInOutRelationExpr, ui as isDynamicViewIncludePredicate, un as OpacityProperty, uo as isSpecificationRule, ur as ViewRuleStyleOrGlobalRef, ut as FqnExpr, v as DeploymentNodeKind, va as isLinkProperty, vi as isElementKind, vn as RelationBody, vo as isTags, vr as WhereExpression, vt as FqnReferenceable, w as DeploymentViewRule, wa as isMetadataValue, wi as isElementStyleProperty, wn as RelationKindDotRef, wo as isViewRef, wr as WhereRelationParticipantKind, wt as Globals, x as DeploymentRelationBody, xa as isMetadataAttribute, xi as isElementRef, xn as RelationExprOrWith, xo as isUri, xr as WhereRelationExpression, xt as GlobalStyle, y as DeploymentNodeOrElementKind, ya as isMarkdownOrString, yi as isElementKindExpression, yn as RelationExpr, yo as isTextSizeProperty, yr as WhereKindEqual, yt as GlobalDynamicPredicateGroup, z as DynamicViewRule, za as isReferenceable, zi as isFqnExpr, zn as SpecificationRelationshipKind, zo as isWhereElementNegation, zr as isCustomColorId, zt as LikeC4AstType } from "../_chunks/ast.mjs";
|
|
2
|
+
export { AbstractDynamicStep, AnyProperty, ArrowProperty, ArrowType, BorderProperty, BorderStyleValue, ColorLiteral, ColorProperty, CustomColor, CustomColorId, CustomElementProperties, CustomRelationProperties, DeployedInstance, DeployedInstanceBody, DeploymentElement, DeploymentNode, DeploymentNodeBody, DeploymentNodeKind, DeploymentNodeOrElementKind, DeploymentRelation, DeploymentRelationBody, DeploymentView, DeploymentViewBody, DeploymentViewRule, DeploymentViewRulePredicate, DeploymentViewRuleStyle, DirectedRelationExpr, DynamicStepChain, DynamicStepSingle, DynamicView, DynamicViewBody, DynamicViewDisplayVariantProperty, DynamicViewDisplayVariantValue, DynamicViewGlobalPredicateRef, DynamicViewIncludePredicate, DynamicViewParallelSteps, DynamicViewProperty, DynamicViewRef, DynamicViewRule, DynamicViewStep, Element, ElementBody, ElementKind, ElementKindExpression, ElementProperty, ElementRef, ElementShape, ElementStringProperty, ElementStyleProperty, ElementTagExpression, ElementView, ElementViewBody, ElementViewRef, ExpressionV2, Expressions, ExtendDeployment, ExtendDeploymentBody, ExtendElement, ExtendElementBody, ExtendElementProperty, ExtendRelation, ExtendRelationBody, ExtendRelationProperty, FqnExpr, FqnExprOrWhere, FqnExprOrWith, FqnExprWhere, FqnExprWith, FqnExpressions, FqnRef, FqnRefExpr, FqnReferenceable, GlobalDynamicPredicateGroup, GlobalPredicateGroup, GlobalStyle, GlobalStyleGroup, GlobalStyleId, Globals, HexColor, IconColorProperty, IconId, IconPositionProperty, IconPositionValue, IconProperty, IconSizeProperty, Id, Imported, ImportsFromPoject, InOutRelationExpr, IncomingRelationExpr, LibIcon, LikeC4AstReflection, LikeC4AstType, LikeC4Grammar, LikeC4KeywordNames, LikeC4Lib, LikeC4TerminalNames, LikeC4Terminals, LikeC4TokenNames, LikeC4View, LineOptions, LineProperty, LinkProperty, MarkdownOrString, MetadataArray, MetadataAttribute, MetadataBody, MetadataProperty, MetadataValue, Model, ModelDeployments, ModelReferenceable, ModelViews, MultipleProperty, NavigateToProperty, NotationProperty, NotesProperty, OpacityProperty, OutgoingRelationExpr, PaddingSizeProperty, Participant, RGBAColor, RankValue, Referenceable, Relation, RelationBody, RelationExpr, RelationExprOrWhere, RelationExprOrWith, RelationExprWhere, RelationExprWith, RelationKindDotRef, RelationNavigateToProperty, RelationProperty, RelationStringProperty, RelationStyleProperty, RelationshipKind, RelationshipStyleProperty, ShapeProperty, ShapeSizeProperty, SizeProperty, SizeValue, SpecificationColor, SpecificationDeploymentNodeKind, SpecificationElementKind, SpecificationElementStringProperty, SpecificationRelationshipKind, SpecificationRelationshipStringProperty, SpecificationRule, SpecificationTag, StrictFqnElementRef, StrictFqnRef, StringProperty, StyleProperty, Tag, TagRef, Tags, TextSizeProperty, ThemeColor, Uri, ViewLayoutDirection, ViewProperty, ViewRef, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRuleGroup, ViewRulePredicate, ViewRuleRank, ViewRuleStyle, ViewRuleStyleOrGlobalRef, ViewStringProperty, WhereBinaryExpression, WhereElement, WhereElementExpression, WhereElementKind, WhereElementNegation, WhereElementTag, WhereExpression, WhereKindEqual, WhereRelation, WhereRelationExpression, WhereRelationKind, WhereRelationNegation, WhereRelationParticipantKind, WhereRelationParticipantTag, WhereRelationTag, WhereTagEqual, WildcardExpression, isAbstractDynamicStep, isAnyProperty, isArrowProperty, isArrowType, isBorderProperty, isBorderStyleValue, isColorLiteral, isColorProperty, isCustomColor, isCustomColorId, isCustomElementProperties, isCustomRelationProperties, isDeployedInstance, isDeployedInstanceBody, isDeploymentElement, isDeploymentNode, isDeploymentNodeBody, isDeploymentNodeKind, isDeploymentNodeOrElementKind, isDeploymentRelation, isDeploymentRelationBody, isDeploymentView, isDeploymentViewBody, isDeploymentViewRule, isDeploymentViewRulePredicate, isDeploymentViewRuleStyle, isDirectedRelationExpr, isDynamicStepChain, isDynamicStepSingle, isDynamicView, isDynamicViewBody, isDynamicViewDisplayVariantProperty, isDynamicViewDisplayVariantValue, isDynamicViewGlobalPredicateRef, isDynamicViewIncludePredicate, isDynamicViewParallelSteps, isDynamicViewProperty, isDynamicViewRef, isDynamicViewRule, isDynamicViewStep, isElement, isElementBody, isElementKind, isElementKindExpression, isElementProperty, isElementRef, isElementShape, isElementStringProperty, isElementStyleProperty, isElementTagExpression, isElementView, isElementViewBody, isElementViewRef, isExpressionV2, isExpressions, isExtendDeployment, isExtendDeploymentBody, isExtendElement, isExtendElementBody, isExtendElementProperty, isExtendRelation, isExtendRelationBody, isExtendRelationProperty, isFqnExpr, isFqnExprOrWhere, isFqnExprOrWith, isFqnExprWhere, isFqnExprWith, isFqnExpressions, isFqnRef, isFqnRefExpr, isFqnReferenceable, isGlobalDynamicPredicateGroup, isGlobalPredicateGroup, isGlobalStyle, isGlobalStyleGroup, isGlobalStyleId, isGlobals, isHexColor, isIconColorProperty, isIconId, isIconPositionProperty, isIconPositionValue, isIconProperty, isIconSizeProperty, isId, isImported, isImportsFromPoject, isInOutRelationExpr, isIncomingRelationExpr, isLibIcon, isLikeC4Grammar, isLikeC4Lib, isLikeC4View, isLineOptions, isLineProperty, isLinkProperty, isMarkdownOrString, isMetadataArray, isMetadataAttribute, isMetadataBody, isMetadataProperty, isMetadataValue, isModel, isModelDeployments, isModelReferenceable, isModelViews, isMultipleProperty, isNavigateToProperty, isNotationProperty, isNotesProperty, isOpacityProperty, isOutgoingRelationExpr, isPaddingSizeProperty, isParticipant, isRGBAColor, isRankValue, isReferenceable, isRelation, isRelationBody, isRelationExpr, isRelationExprOrWhere, isRelationExprOrWith, isRelationExprWhere, isRelationExprWith, isRelationKindDotRef, isRelationNavigateToProperty, isRelationProperty, isRelationStringProperty, isRelationStyleProperty, isRelationshipKind, isRelationshipStyleProperty, isShapeProperty, isShapeSizeProperty, isSizeProperty, isSizeValue, isSpecificationColor, isSpecificationDeploymentNodeKind, isSpecificationElementKind, isSpecificationElementStringProperty, isSpecificationRelationshipKind, isSpecificationRelationshipStringProperty, isSpecificationRule, isSpecificationTag, isStrictFqnElementRef, isStrictFqnRef, isStringProperty, isStyleProperty, isTag, isTagRef, isTags, isTextSizeProperty, isThemeColor, isUri, isViewLayoutDirection, isViewProperty, isViewRef, isViewRule, isViewRuleAutoLayout, isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, isViewRuleGroup, isViewRulePredicate, isViewRuleRank, isViewRuleStyle, isViewRuleStyleOrGlobalRef, isViewStringProperty, isWhereBinaryExpression, isWhereElement, isWhereElementExpression, isWhereElementKind, isWhereElementNegation, isWhereElementTag, isWhereExpression, isWhereKindEqual, isWhereRelation, isWhereRelationExpression, isWhereRelationKind, isWhereRelationNegation, isWhereRelationParticipantKind, isWhereRelationParticipantTag, isWhereRelationTag, isWhereTagEqual, isWildcardExpression, reflection };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as ExtendElement, $a as isTags, $i as isLinkProperty, $n as WhereExpression, $r as isElementKind, $t as PaddingSizeProperty, A as DynamicViewGlobalPredicateRef, Aa as isRelationProperty, Ai as isGlobalPredicateGroup, An as StyleProperty, Ao as isWhereRelationTag, Ar as isDeploymentRelation, At as LikeC4AstReflection, B as ElementKindExpression, Ba as isSpecificationDeploymentNodeKind, Bi as isIconProperty, Bn as ViewRuleGlobalStyle, Br as isDynamicView, Bt as MetadataBody, C as DeploymentViewRuleStyle, Ca as isRelationExpr, Ci as isFqnExprWhere, Cn as SpecificationRelationshipKind, Co as isWhereKindEqual, Cr as isDeployedInstance, Ct as IconProperty, D as DynamicView, Da as isRelationExprWith, Di as isFqnRefExpr, Dn as StrictFqnElementRef, Do as isWhereRelationNegation, Dr as isDeploymentNodeBody, Dt as InOutRelationExpr, E as DynamicStepSingle, Ea as isRelationExprWhere, Ei as isFqnRef, En as SpecificationTag, Eo as isWhereRelationKind, Er as isDeploymentNode, Et as ImportsFromPoject, F as DynamicViewRule, Fa as isShapeProperty, Fi as isHexColor, Fn as ViewProperty, Fr as isDeploymentViewRulePredicate, Ft as LineProperty, G as ElementTagExpression, Ga as isSpecificationRule, Gi as isInOutRelationExpr, Gn as ViewRuleStyleOrGlobalRef, Gr as isDynamicViewIncludePredicate, Gt as ModelReferenceable, H as ElementRef, Ha as isSpecificationElementStringProperty, Hi as isId, Hn as ViewRulePredicate, Hr as isDynamicViewDisplayVariantProperty, Ht as MetadataValue, I as DynamicViewStep, Ia as isShapeSizeProperty, Ii as isIconColorProperty, In as ViewRef, Ir as isDeploymentViewRuleStyle, It as LinkProperty, J as ElementViewRef, Ja as isStrictFqnRef, Ji as isLikeC4Grammar, Jn as WhereElement, Jr as isDynamicViewRef, Jt as NavigateToProperty, K as ElementView, Ka as isSpecificationTag, Ki as isIncomingRelationExpr, Kn as ViewStringProperty, Kr as isDynamicViewParallelSteps, Kt as ModelViews, L as Element, La as isSizeProperty, Li as isIconId, Ln as ViewRule, Lr as isDirectedRelationExpr, Lt as MarkdownOrString, M as DynamicViewParallelSteps, Ma as isRelationStyleProperty, Mi as isGlobalStyleGroup, Mn as TagRef, Mo as isWildcardExpression, Mr as isDeploymentView, Mt as LikeC4Lib, N as DynamicViewProperty, Na as isRelationshipKind, Ni as isGlobalStyleId, Nn as Tags, No as reflection, Nr as isDeploymentViewBody, Nt as LikeC4Terminals, O as DynamicViewBody, Oa as isRelationKindDotRef, Oi as isFqnReferenceable, On as StrictFqnRef, Oo as isWhereRelationParticipantKind, Or as isDeploymentNodeKind, Ot as IncomingRelationExpr, P as DynamicViewRef, Pa as isRelationshipStyleProperty, Pi as isGlobals, Pn as TextSizeProperty, Pr as isDeploymentViewRule, Pt as LikeC4View, Q as ExtendDeploymentBody, Qa as isTagRef, Qi as isLineProperty, Qn as WhereElementTag, Qr as isElementBody, Qt as OutgoingRelationExpr, R as ElementBody, Ra as isSizeValue, Ri as isIconPositionProperty, Rn as ViewRuleAutoLayout, Rr as isDynamicStepChain, Rt as MetadataArray, S as DeploymentViewRulePredicate, Sa as isRelationBody, Si as isFqnExprOrWith, Sn as SpecificationElementStringProperty, So as isWhereExpression, Sr as isCustomRelationProperties, St as IconPositionProperty, T as DynamicStepChain, Ta as isRelationExprOrWith, Ti as isFqnExpressions, Tn as SpecificationRule, To as isWhereRelationExpression, Tr as isDeploymentElement, Tt as Imported, U as ElementStringProperty, Ua as isSpecificationRelationshipKind, Ui as isImported, Un as ViewRuleRank, Ur as isDynamicViewDisplayVariantValue, Ut as Model, V as ElementProperty, Va as isSpecificationElementKind, Vi as isIconSizeProperty, Vn as ViewRuleGroup, Vr as isDynamicViewBody, Vt as MetadataProperty, W as ElementStyleProperty, Wa as isSpecificationRelationshipStringProperty, Wi as isImportsFromPoject, Wn as ViewRuleStyle, Wr as isDynamicViewGlobalPredicateRef, Wt as ModelDeployments, X as Expressions, Xa as isStyleProperty, Xi as isLikeC4View, Xn as WhereElementKind, Xr as isDynamicViewStep, Xt as NotesProperty, Y as ExpressionV2, Ya as isStringProperty, Yi as isLikeC4Lib, Yn as WhereElementExpression, Yr as isDynamicViewRule, Yt as NotationProperty, Z as ExtendDeployment, Za as isTag, Zi as isLineOptions, Zn as WhereElementNegation, Zr as isElement, Zt as OpacityProperty, _ as DeploymentRelation, _a as isParticipant, _i as isExtendRelation, _n as ShapeSizeProperty, _o as isWhereElement, _r as isColorLiteral, _t as GlobalStyleGroup, a as ColorLiteral, aa as isMetadataValue, ai as isElementStyleProperty, an as RelationExprOrWhere, ao as isViewRef, ar as WhereRelationParticipantKind, at as FqnExpr, b as DeploymentViewBody, ba as isReferenceable, bi as isFqnExpr, bn as SpecificationDeploymentNodeKind, bo as isWhereElementNegation, br as isCustomColorId, bt as HexColor, c as CustomElementProperties, ca as isModelReferenceable, ci as isElementViewBody, cn as RelationExprWith, co as isViewRuleGlobalPredicateRef, cr as WhereTagEqual, ct as FqnExprWhere, d as DeployedInstanceBody, da as isNavigateToProperty, di as isExpressions, dn as RelationProperty, do as isViewRulePredicate, dr as isAbstractDynamicStep, dt as FqnRef, ea as isMarkdownOrString, ei as isElementKindExpression, en as RGBAColor, eo as isTextSizeProperty, er as WhereKindEqual, et as ExtendElementBody, f as DeploymentElement, fa as isNotationProperty, fi as isExtendDeployment, fn as RelationStringProperty, fo as isViewRuleRank, fr as isAnyProperty, ft as FqnRefExpr, g as DeploymentNodeOrElementKind, ga as isPaddingSizeProperty, gi as isExtendElementProperty, gn as ShapeProperty, go as isWhereBinaryExpression, gr as isBorderStyleValue, gt as GlobalStyle, h as DeploymentNodeKind, ha as isOutgoingRelationExpr, hi as isExtendElementBody, hn as RelationshipStyleProperty, ho as isViewStringProperty, hr as isBorderProperty, ht as GlobalPredicateGroup, i as BorderProperty, ia as isMetadataProperty, ii as isElementStringProperty, in as RelationExpr, io as isViewProperty, ir as WhereRelationNegation, it as ExtendRelationProperty, j as DynamicViewIncludePredicate, ja as isRelationStringProperty, ji as isGlobalStyle, jn as Tag, jo as isWhereTagEqual, jr as isDeploymentRelationBody, jt as LikeC4Grammar, k as DynamicViewDisplayVariantProperty, ka as isRelationNavigateToProperty, ki as isGlobalDynamicPredicateGroup, kn as StringProperty, ko as isWhereRelationParticipantTag, kr as isDeploymentNodeOrElementKind, kt as LibIcon, l as CustomRelationProperties, la as isModelViews, li as isElementViewRef, ln as RelationKindDotRef, lo as isViewRuleGlobalStyle, lr as WildcardExpression, lt as FqnExprWith, m as DeploymentNodeBody, ma as isOpacityProperty, mi as isExtendElement, mn as RelationshipKind, mo as isViewRuleStyleOrGlobalRef, mr as isArrowType, mt as GlobalDynamicPredicateGroup, n as AnyProperty, na as isMetadataAttribute, ni as isElementRef, nn as Relation, no as isUri, nr as WhereRelationExpression, nt as ExtendRelation, o as ColorProperty, oa as isModel, oi as isElementTagExpression, on as RelationExprOrWith, oo as isViewRule, or as WhereRelationParticipantTag, ot as FqnExprOrWhere, p as DeploymentNode, pa as isNotesProperty, pi as isExtendDeploymentBody, pn as RelationStyleProperty, po as isViewRuleStyle, pr as isArrowProperty, pt as FqnReferenceable, q as ElementViewBody, qa as isStrictFqnElementRef, qi as isLibIcon, qn as WhereBinaryExpression, qr as isDynamicViewProperty, qt as MultipleProperty, r as ArrowProperty, ra as isMetadataBody, ri as isElementShape, rn as RelationBody, ro as isViewLayoutDirection, rr as WhereRelationKind, rt as ExtendRelationBody, s as CustomColor, sa as isModelDeployments, si as isElementView, sn as RelationExprWhere, so as isViewRuleAutoLayout, sr as WhereRelationTag, st as FqnExprOrWith, t as AbstractDynamicStep, ta as isMetadataArray, ti as isElementProperty, tn as Referenceable, to as isThemeColor, tr as WhereRelation, tt as ExtendElementProperty, u as DeployedInstance, ua as isMultipleProperty, ui as isExpressionV2, un as RelationNavigateToProperty, uo as isViewRuleGroup, ut as FqnExpressions, v as DeploymentRelationBody, va as isRGBAColor, vi as isExtendRelationBody, vn as SizeProperty, vo as isWhereElementExpression, vr as isColorProperty, vt as GlobalStyleId, w as DirectedRelationExpr, wa as isRelationExprOrWhere, wi as isFqnExprWith, wn as SpecificationRelationshipStringProperty, wo as isWhereRelation, wr as isDeployedInstanceBody, wt as IconSizeProperty, x as DeploymentViewRule, xa as isRelation, xi as isFqnExprOrWhere, xn as SpecificationElementKind, xo as isWhereElementTag, xr as isCustomElementProperties, xt as IconColorProperty, y as DeploymentView, ya as isRankValue, yi as isExtendRelationProperty, yn as SpecificationColor, yo as isWhereElementKind, yr as isCustomColor, yt as Globals, z as ElementKind, za as isSpecificationColor, zi as isIconPositionValue, zn as ViewRuleGlobalPredicateRef, zr as isDynamicStepSingle, zt as MetadataAttribute } from "../_chunks/ast.mjs";
|
|
2
|
+
|
|
3
|
+
export { AbstractDynamicStep, AnyProperty, ArrowProperty, BorderProperty, ColorLiteral, ColorProperty, CustomColor, CustomElementProperties, CustomRelationProperties, DeployedInstance, DeployedInstanceBody, DeploymentElement, DeploymentNode, DeploymentNodeBody, DeploymentNodeKind, DeploymentNodeOrElementKind, DeploymentRelation, DeploymentRelationBody, DeploymentView, DeploymentViewBody, DeploymentViewRule, DeploymentViewRulePredicate, DeploymentViewRuleStyle, DirectedRelationExpr, DynamicStepChain, DynamicStepSingle, DynamicView, DynamicViewBody, DynamicViewDisplayVariantProperty, DynamicViewGlobalPredicateRef, DynamicViewIncludePredicate, DynamicViewParallelSteps, DynamicViewProperty, DynamicViewRef, DynamicViewRule, DynamicViewStep, Element, ElementBody, ElementKind, ElementKindExpression, ElementProperty, ElementRef, ElementStringProperty, ElementStyleProperty, ElementTagExpression, ElementView, ElementViewBody, ElementViewRef, ExpressionV2, Expressions, ExtendDeployment, ExtendDeploymentBody, ExtendElement, ExtendElementBody, ExtendElementProperty, ExtendRelation, ExtendRelationBody, ExtendRelationProperty, FqnExpr, FqnExprOrWhere, FqnExprOrWith, FqnExprWhere, FqnExprWith, FqnExpressions, FqnRef, FqnRefExpr, FqnReferenceable, GlobalDynamicPredicateGroup, GlobalPredicateGroup, GlobalStyle, GlobalStyleGroup, GlobalStyleId, Globals, HexColor, IconColorProperty, IconPositionProperty, IconProperty, IconSizeProperty, Imported, ImportsFromPoject, InOutRelationExpr, IncomingRelationExpr, LibIcon, LikeC4AstReflection, LikeC4Grammar, LikeC4Lib, LikeC4Terminals, LikeC4View, LineProperty, LinkProperty, MarkdownOrString, MetadataArray, MetadataAttribute, MetadataBody, MetadataProperty, MetadataValue, Model, ModelDeployments, ModelReferenceable, ModelViews, MultipleProperty, NavigateToProperty, NotationProperty, NotesProperty, OpacityProperty, OutgoingRelationExpr, PaddingSizeProperty, RGBAColor, Referenceable, Relation, RelationBody, RelationExpr, RelationExprOrWhere, RelationExprOrWith, RelationExprWhere, RelationExprWith, RelationKindDotRef, RelationNavigateToProperty, RelationProperty, RelationStringProperty, RelationStyleProperty, RelationshipKind, RelationshipStyleProperty, ShapeProperty, ShapeSizeProperty, SizeProperty, SpecificationColor, SpecificationDeploymentNodeKind, SpecificationElementKind, SpecificationElementStringProperty, SpecificationRelationshipKind, SpecificationRelationshipStringProperty, SpecificationRule, SpecificationTag, StrictFqnElementRef, StrictFqnRef, StringProperty, StyleProperty, Tag, TagRef, Tags, TextSizeProperty, ViewProperty, ViewRef, ViewRule, ViewRuleAutoLayout, ViewRuleGlobalPredicateRef, ViewRuleGlobalStyle, ViewRuleGroup, ViewRulePredicate, ViewRuleRank, ViewRuleStyle, ViewRuleStyleOrGlobalRef, ViewStringProperty, WhereBinaryExpression, WhereElement, WhereElementExpression, WhereElementKind, WhereElementNegation, WhereElementTag, WhereExpression, WhereKindEqual, WhereRelation, WhereRelationExpression, WhereRelationKind, WhereRelationNegation, WhereRelationParticipantKind, WhereRelationParticipantTag, WhereRelationTag, WhereTagEqual, WildcardExpression, isAbstractDynamicStep, isAnyProperty, isArrowProperty, isArrowType, isBorderProperty, isBorderStyleValue, isColorLiteral, isColorProperty, isCustomColor, isCustomColorId, isCustomElementProperties, isCustomRelationProperties, isDeployedInstance, isDeployedInstanceBody, isDeploymentElement, isDeploymentNode, isDeploymentNodeBody, isDeploymentNodeKind, isDeploymentNodeOrElementKind, isDeploymentRelation, isDeploymentRelationBody, isDeploymentView, isDeploymentViewBody, isDeploymentViewRule, isDeploymentViewRulePredicate, isDeploymentViewRuleStyle, isDirectedRelationExpr, isDynamicStepChain, isDynamicStepSingle, isDynamicView, isDynamicViewBody, isDynamicViewDisplayVariantProperty, isDynamicViewDisplayVariantValue, isDynamicViewGlobalPredicateRef, isDynamicViewIncludePredicate, isDynamicViewParallelSteps, isDynamicViewProperty, isDynamicViewRef, isDynamicViewRule, isDynamicViewStep, isElement, isElementBody, isElementKind, isElementKindExpression, isElementProperty, isElementRef, isElementShape, isElementStringProperty, isElementStyleProperty, isElementTagExpression, isElementView, isElementViewBody, isElementViewRef, isExpressionV2, isExpressions, isExtendDeployment, isExtendDeploymentBody, isExtendElement, isExtendElementBody, isExtendElementProperty, isExtendRelation, isExtendRelationBody, isExtendRelationProperty, isFqnExpr, isFqnExprOrWhere, isFqnExprOrWith, isFqnExprWhere, isFqnExprWith, isFqnExpressions, isFqnRef, isFqnRefExpr, isFqnReferenceable, isGlobalDynamicPredicateGroup, isGlobalPredicateGroup, isGlobalStyle, isGlobalStyleGroup, isGlobalStyleId, isGlobals, isHexColor, isIconColorProperty, isIconId, isIconPositionProperty, isIconPositionValue, isIconProperty, isIconSizeProperty, isId, isImported, isImportsFromPoject, isInOutRelationExpr, isIncomingRelationExpr, isLibIcon, isLikeC4Grammar, isLikeC4Lib, isLikeC4View, isLineOptions, isLineProperty, isLinkProperty, isMarkdownOrString, isMetadataArray, isMetadataAttribute, isMetadataBody, isMetadataProperty, isMetadataValue, isModel, isModelDeployments, isModelReferenceable, isModelViews, isMultipleProperty, isNavigateToProperty, isNotationProperty, isNotesProperty, isOpacityProperty, isOutgoingRelationExpr, isPaddingSizeProperty, isParticipant, isRGBAColor, isRankValue, isReferenceable, isRelation, isRelationBody, isRelationExpr, isRelationExprOrWhere, isRelationExprOrWith, isRelationExprWhere, isRelationExprWith, isRelationKindDotRef, isRelationNavigateToProperty, isRelationProperty, isRelationStringProperty, isRelationStyleProperty, isRelationshipKind, isRelationshipStyleProperty, isShapeProperty, isShapeSizeProperty, isSizeProperty, isSizeValue, isSpecificationColor, isSpecificationDeploymentNodeKind, isSpecificationElementKind, isSpecificationElementStringProperty, isSpecificationRelationshipKind, isSpecificationRelationshipStringProperty, isSpecificationRule, isSpecificationTag, isStrictFqnElementRef, isStrictFqnRef, isStringProperty, isStyleProperty, isTag, isTagRef, isTags, isTextSizeProperty, isThemeColor, isUri, isViewLayoutDirection, isViewProperty, isViewRef, isViewRule, isViewRuleAutoLayout, isViewRuleGlobalPredicateRef, isViewRuleGlobalStyle, isViewRuleGroup, isViewRulePredicate, isViewRuleRank, isViewRuleStyle, isViewRuleStyleOrGlobalRef, isViewStringProperty, isWhereBinaryExpression, isWhereElement, isWhereElementExpression, isWhereElementKind, isWhereElementNegation, isWhereElementTag, isWhereExpression, isWhereKindEqual, isWhereRelation, isWhereRelationExpression, isWhereRelationKind, isWhereRelationNegation, isWhereRelationParticipantKind, isWhereRelationParticipantTag, isWhereRelationTag, isWhereTagEqual, isWildcardExpression, reflection };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IParserConfig, LangiumCoreServices, LangiumGeneratedCoreServices, LangiumGeneratedSharedCoreServices, LangiumSharedCoreServices, Module } from "langium";
|
|
2
|
+
|
|
3
|
+
//#region src/generated/module.d.ts
|
|
4
|
+
declare const LikeC4LanguageMetaData: {
|
|
5
|
+
readonly languageId: "likec4";
|
|
6
|
+
readonly fileExtensions: readonly [".c4", ".likec4", ".like-c4"];
|
|
7
|
+
readonly caseInsensitive: false;
|
|
8
|
+
readonly mode: "production";
|
|
9
|
+
};
|
|
10
|
+
declare const parserConfig: IParserConfig;
|
|
11
|
+
declare const LikeC4GeneratedSharedModule: Module<LangiumSharedCoreServices, LangiumGeneratedSharedCoreServices>;
|
|
12
|
+
declare const LikeC4GeneratedModule: Module<LangiumCoreServices, LangiumGeneratedCoreServices>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { LikeC4GeneratedModule, LikeC4GeneratedSharedModule, LikeC4LanguageMetaData, parserConfig };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./_chunks/ast.mjs";
|
|
2
|
+
import { J as LanguageServicesContext, Q as createLanguageServices, X as LikeC4Services, Y as LikeC4AddedServices, Z as LikeC4SharedServices, _t as LikeC4ManualLayoutsModuleContext, a as startLanguageServer, bt as ProjectsManager, c as WithFileSystem, ct as NoFileSystem, d as LikeC4ModelBuilder, f as FqnIndex, ft as FileSystemModuleContext, gt as LikeC4ManualLayouts, ht as FileSystemWatcherModuleContext, i as LikeC4ModelParser, l as LikeC4ModelLocator, lt as NoFileSystemWatcher, mt as FileSystemWatcher, n as LikeC4LanguageServices, nt as NoMCPServer, o as WithMCPServer, ot as LikeC4WorkspaceManager, pt as FileSystemProvider, r as DocumentParser, s as WithLikeC4ManualLayouts, st as LangiumDocuments, tt as LikeC4Views, u as ViewLocateResult, ut as NoLikeC4ManualLayouts, vt as Project, yt as ProjectData } from "./_chunks/LikeC4LanguageServices.mjs";
|
|
3
|
+
import "./_chunks/protocol.mjs";
|
|
4
|
+
export { DocumentParser, FileSystemModuleContext, FileSystemProvider, FileSystemWatcher, FileSystemWatcherModuleContext, FqnIndex, LangiumDocuments, LanguageServicesContext, LikeC4AddedServices, LikeC4LanguageServices, LikeC4ManualLayouts, LikeC4ManualLayoutsModuleContext, LikeC4ModelBuilder, LikeC4ModelLocator, LikeC4ModelParser, LikeC4Services, LikeC4SharedServices, LikeC4Views, LikeC4WorkspaceManager, NoFileSystem, NoFileSystemWatcher, NoLikeC4ManualLayouts, NoMCPServer, Project, ProjectData, ProjectsManager, ViewLocateResult, WithFileSystem, WithLikeC4ManualLayouts, WithMCPServer, createLanguageServices, startLanguageServer };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { i as getTelemetrySink, o as logger$1 } from "./_chunks/LikeC4LanguageServices.mjs";
|
|
2
|
+
import "./_chunks/libs/eventemitter3.mjs";
|
|
3
|
+
import { i as WithLikeC4ManualLayouts, n as WithMCPServer, r as WithFileSystem, t as ConfigurableLayouter } from "./_chunks/ConfigurableLayouter.mjs";
|
|
4
|
+
import { n as NoFileSystemWatcher, r as NoLikeC4ManualLayouts, t as NoFileSystem } from "./_chunks/filesystem.mjs";
|
|
5
|
+
import { t as createLanguageServices } from "./_chunks/module2.mjs";
|
|
6
|
+
import "./_chunks/libs/@hono/node-server.mjs";
|
|
7
|
+
import "./_chunks/libs/hono.mjs";
|
|
8
|
+
import { t as NoMCPServer } from "./_chunks/mcp.mjs";
|
|
9
|
+
import { configureLogger, getConsoleSink, getConsoleStderrSink, getTextFormatter } from "@likec4/log";
|
|
10
|
+
import { defu } from "defu";
|
|
11
|
+
import { startLanguageServer as startLanguageServer$1 } from "langium/lsp";
|
|
12
|
+
import { isDevelopment } from "std-env";
|
|
13
|
+
|
|
14
|
+
//#region src/index.ts
|
|
15
|
+
function startLanguageServer(options) {
|
|
16
|
+
const connection = options?.connection;
|
|
17
|
+
const opts = defu(options, {
|
|
18
|
+
enableWatcher: true,
|
|
19
|
+
enableMCP: "sse",
|
|
20
|
+
enableTelemetry: !!connection,
|
|
21
|
+
enableManualLayouts: true
|
|
22
|
+
});
|
|
23
|
+
const enableTelemetry = !!connection && opts.enableTelemetry && !isDevelopment;
|
|
24
|
+
configureLogger({
|
|
25
|
+
sinks: {
|
|
26
|
+
console: opts.enableMCP === "stdio" || connection ? getConsoleStderrSink({ formatter: getTextFormatter() }) : getConsoleSink({ formatter: getTextFormatter() }),
|
|
27
|
+
...enableTelemetry && { telemetry: getTelemetrySink(connection) }
|
|
28
|
+
},
|
|
29
|
+
loggers: [{
|
|
30
|
+
category: ["likec4"],
|
|
31
|
+
sinks: ["console", ...enableTelemetry ? ["telemetry"] : []],
|
|
32
|
+
lowestLevel: isDevelopment ? "trace" : "debug"
|
|
33
|
+
}]
|
|
34
|
+
});
|
|
35
|
+
if (connection) logger$1.info("Starting LikeC4 language server");
|
|
36
|
+
else logger$1.warn("Starting LikeC4 language server (headless - no LSP connection)");
|
|
37
|
+
const services = createLanguageServices({
|
|
38
|
+
...connection && { connection },
|
|
39
|
+
...WithFileSystem(opts.enableWatcher),
|
|
40
|
+
...!!opts.enableMCP && WithMCPServer(opts.enableMCP),
|
|
41
|
+
...opts.enableManualLayouts && WithLikeC4ManualLayouts
|
|
42
|
+
}, connection ? { likec4: { ...ConfigurableLayouter.likec4 } } : void 0);
|
|
43
|
+
startLanguageServer$1(services.shared);
|
|
44
|
+
return services;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { NoFileSystem, NoFileSystemWatcher, NoLikeC4ManualLayouts, NoMCPServer, WithFileSystem, WithLikeC4ManualLayouts, WithMCPServer, createLanguageServices, startLanguageServer };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LibIcons } from "./generated-lib/icons.mjs";
|
|
2
|
+
import { URI } from "vscode-uri";
|
|
3
|
+
|
|
4
|
+
//#region src/likec4lib.d.ts
|
|
5
|
+
declare const Scheme = "likec4builtin";
|
|
6
|
+
declare const Uri: "likec4builtin:///likec4/lib/icons.c4";
|
|
7
|
+
declare function isLikeC4Builtin(uri: URI): boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { LibIcons as Content, Scheme, Uri, isLikeC4Builtin };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../_chunks/ast.mjs";
|
|
2
|
+
import { at as LikeC4MCPServerModuleContext, it as LikeC4MCPServerFactory, nt as NoMCPServer, rt as LikeC4MCPServer } from "../_chunks/LikeC4LanguageServices.mjs";
|
|
3
|
+
import "../_chunks/protocol.mjs";
|
|
4
|
+
export { LikeC4MCPServer, LikeC4MCPServerFactory, LikeC4MCPServerModuleContext, NoMCPServer };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./_chunks/ast.mjs";
|
|
2
|
+
import { $ as createLikeC4Module, J as LanguageServicesContext, Q as createLanguageServices, X as LikeC4Services, Y as LikeC4AddedServices, Z as LikeC4SharedServices, et as createSharedServices } from "./_chunks/LikeC4LanguageServices.mjs";
|
|
3
|
+
import "./_chunks/protocol.mjs";
|
|
4
|
+
export { LanguageServicesContext, LikeC4AddedServices, LikeC4Services, LikeC4SharedServices, createLanguageServices, createLikeC4Module, createSharedServices };
|
package/dist/module.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as ReloadProjects, a as DidChangeSnapshotNotification, c as FetchLayoutedModel, d as FetchTelemetryMetrics, f as FetchViewsFromAllProjects, g as RegisterProject, h as Locate, i as DidChangeProjectsNotification, l as FetchProjects, m as LayoutView, n as ChangeView, o as DidRequestOpenViewNotification, p as GetDocumentTags, r as DidChangeModelNotification, s as FetchComputedModel, t as BuildDocuments, u as FetchProjectsOverview, v as ValidateLayout } from "./_chunks/protocol.mjs";
|
|
2
|
+
export { BuildDocuments, ChangeView, DidChangeModelNotification, DidChangeProjectsNotification, DidChangeSnapshotNotification, DidRequestOpenViewNotification, FetchComputedModel, FetchLayoutedModel, FetchProjects, FetchProjectsOverview, FetchTelemetryMetrics, FetchViewsFromAllProjects, GetDocumentTags, LayoutView, Locate, RegisterProject, ReloadProjects, ValidateLayout };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { _ as ReloadProjects, a as DidChangeSnapshotNotification, c as FetchLayoutedModel, d as FetchTelemetryMetrics, f as FetchViewsFromAllProjects, g as RegisterProject, h as Locate, i as DidChangeProjectsNotification, l as FetchProjects, m as LayoutView, n as ChangeView, o as DidRequestOpenViewNotification, p as GetDocumentTags, r as DidChangeModelNotification, s as FetchComputedModel, t as BuildDocuments, u as FetchProjectsOverview, v as ValidateLayout } from "./_chunks/protocol.mjs";
|
|
2
|
+
|
|
3
|
+
export { BuildDocuments, ChangeView, DidChangeModelNotification, DidChangeProjectsNotification, DidChangeSnapshotNotification, DidRequestOpenViewNotification, FetchComputedModel, FetchLayoutedModel, FetchProjects, FetchProjectsOverview, FetchTelemetryMetrics, FetchViewsFromAllProjects, GetDocumentTags, LayoutView, Locate, RegisterProject, ReloadProjects, ValidateLayout };
|
package/likec4lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/language-server",
|
|
3
3
|
"description": "LikeC4 Language Server",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.48.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
7
7
|
"homepage": "https://likec4.dev",
|
|
@@ -32,44 +32,69 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"sources": "./src/index.ts",
|
|
35
|
+
"browser": {
|
|
36
|
+
"sources": "./src/browser.ts",
|
|
37
|
+
"default": {
|
|
38
|
+
"types": "./dist/browser.d.mts",
|
|
39
|
+
"import": "./dist/browser.mjs",
|
|
40
|
+
"default": "./dist/browser.mjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"node": {
|
|
44
|
+
"sources": "./src/index.ts",
|
|
45
|
+
"default": {
|
|
46
|
+
"types": "./dist/index.d.mts",
|
|
47
|
+
"import": "./dist/index.mjs",
|
|
48
|
+
"default": "./dist/index.mjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
35
51
|
"default": {
|
|
36
|
-
"types": "./dist/index.d.
|
|
37
|
-
"
|
|
52
|
+
"types": "./dist/index.d.mts",
|
|
53
|
+
"import": "./dist/index.mjs",
|
|
54
|
+
"default": "./dist/index.mjs"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"./bundled": {
|
|
58
|
+
"sources": "./src/bundled.ts",
|
|
59
|
+
"default": {
|
|
60
|
+
"types": "./dist/bundled.d.mts",
|
|
61
|
+
"import": "./dist/bundled.mjs",
|
|
62
|
+
"default": "./dist/bundled.mjs"
|
|
38
63
|
}
|
|
39
64
|
},
|
|
40
65
|
"./likec4lib": {
|
|
41
66
|
"sources": "./src/likec4lib.ts",
|
|
42
67
|
"default": {
|
|
43
|
-
"types": "./dist/likec4lib.d.
|
|
44
|
-
"import": "./dist/likec4lib.
|
|
45
|
-
"default": "./dist/likec4lib.
|
|
68
|
+
"types": "./dist/likec4lib.d.mts",
|
|
69
|
+
"import": "./dist/likec4lib.mjs",
|
|
70
|
+
"default": "./dist/likec4lib.mjs"
|
|
46
71
|
}
|
|
47
72
|
},
|
|
48
73
|
"./browser-worker": {
|
|
49
74
|
"sources": "./src/browser-worker.ts",
|
|
50
75
|
"default": {
|
|
51
|
-
"types": "./dist/browser-worker.d.
|
|
52
|
-
"import": "./dist/browser-worker.
|
|
53
|
-
"default": "./dist/browser-worker.
|
|
76
|
+
"types": "./dist/browser-worker.d.mts",
|
|
77
|
+
"import": "./dist/browser-worker.mjs",
|
|
78
|
+
"default": "./dist/browser-worker.mjs"
|
|
54
79
|
}
|
|
55
80
|
},
|
|
56
81
|
"./browser": {
|
|
57
82
|
"sources": "./src/browser.ts",
|
|
58
83
|
"default": {
|
|
59
|
-
"types": "./dist/browser.d.
|
|
60
|
-
"import": "./dist/browser.
|
|
61
|
-
"default": "./dist/browser.
|
|
84
|
+
"types": "./dist/browser.d.mts",
|
|
85
|
+
"import": "./dist/browser.mjs",
|
|
86
|
+
"default": "./dist/browser.mjs"
|
|
62
87
|
}
|
|
63
88
|
},
|
|
64
89
|
"./protocol": {
|
|
65
90
|
"sources": "./src/protocol.ts",
|
|
66
91
|
"default": {
|
|
67
|
-
"types": "./dist/protocol.d.
|
|
68
|
-
"import": "./dist/protocol.
|
|
69
|
-
"default": "./dist/protocol.
|
|
92
|
+
"types": "./dist/protocol.d.mts",
|
|
93
|
+
"import": "./dist/protocol.mjs",
|
|
94
|
+
"default": "./dist/protocol.mjs"
|
|
70
95
|
}
|
|
71
96
|
},
|
|
72
|
-
"./
|
|
97
|
+
"./package.json": "./package.json"
|
|
73
98
|
},
|
|
74
99
|
"publishConfig": {
|
|
75
100
|
"registry": "https://registry.npmjs.org",
|
|
@@ -77,66 +102,82 @@
|
|
|
77
102
|
},
|
|
78
103
|
"dependencies": {
|
|
79
104
|
"@hpcc-js/wasm-graphviz": "1.17.0",
|
|
105
|
+
"@smithy/util-base64": "^4.3.0",
|
|
106
|
+
"fdir": "6.4.0",
|
|
107
|
+
"which": "^5.0.0",
|
|
108
|
+
"type-fest": "^4.41.0",
|
|
109
|
+
"chokidar": "^5.0.0",
|
|
110
|
+
"nano-spawn": "^2.0.0",
|
|
111
|
+
"nanoid": "5.1.6",
|
|
112
|
+
"zod": "^3.25.76",
|
|
113
|
+
"defu": "^6.1.4",
|
|
114
|
+
"std-env": "^3.10.0",
|
|
115
|
+
"langium": "3.5.0",
|
|
116
|
+
"immer": "^11.1.3",
|
|
117
|
+
"json5": "^2.2.3",
|
|
118
|
+
"vscode-jsonrpc": "8.2.1",
|
|
119
|
+
"vscode-uri": "3.1.0",
|
|
120
|
+
"vscode-languageserver-textdocument": "1.0.11",
|
|
121
|
+
"vscode-languageserver-protocol": "3.17.5",
|
|
122
|
+
"vscode-languageserver-types": "3.17.5",
|
|
123
|
+
"vscode-languageserver": "9.0.1",
|
|
124
|
+
"@likec4/config": "1.48.0",
|
|
125
|
+
"@likec4/log": "1.48.0",
|
|
126
|
+
"@likec4/layouts": "1.48.0",
|
|
127
|
+
"@likec4/core": "1.48.0"
|
|
128
|
+
},
|
|
129
|
+
"peerDependencies": {
|
|
130
|
+
"esbuild": "0.27.2",
|
|
80
131
|
"bundle-require": "^5.1.0",
|
|
81
|
-
"
|
|
132
|
+
"@modelcontextprotocol/sdk": "^1.25.3"
|
|
133
|
+
},
|
|
134
|
+
"peerDependenciesMeta": {
|
|
135
|
+
"esbuild": {
|
|
136
|
+
"optional": true
|
|
137
|
+
},
|
|
138
|
+
"bundle-require": {
|
|
139
|
+
"optional": true
|
|
140
|
+
},
|
|
141
|
+
"@modelcontextprotocol/sdk": {
|
|
142
|
+
"optional": true
|
|
143
|
+
}
|
|
82
144
|
},
|
|
83
145
|
"devDependencies": {
|
|
84
|
-
"
|
|
85
|
-
"
|
|
146
|
+
"remeda": "^2.32.0",
|
|
147
|
+
"p-queue": "8.1.1",
|
|
148
|
+
"p-debounce": "5.1.0",
|
|
149
|
+
"p-timeout": "6.1.4",
|
|
86
150
|
"@msgpack/msgpack": "^3.1.2",
|
|
87
|
-
"
|
|
151
|
+
"ufo": "1.6.3",
|
|
152
|
+
"pretty-ms": "^9.3.0",
|
|
153
|
+
"hono": "^4.11.6",
|
|
154
|
+
"@hono/node-server": "^1.19.9",
|
|
155
|
+
"fast-equals": "^6.0.0",
|
|
156
|
+
"strip-indent": "^4.1.1",
|
|
157
|
+
"indent-string": "^5.0.0",
|
|
158
|
+
"bundle-require": "^5.1.0",
|
|
159
|
+
"esbuild": "0.27.2",
|
|
88
160
|
"@types/natural-compare-lite": "^1.4.2",
|
|
89
|
-
"@
|
|
161
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
162
|
+
"@types/node": "~22.19.7",
|
|
90
163
|
"@types/picomatch": "^4.0.2",
|
|
164
|
+
"picomatch": "^4.0.3",
|
|
91
165
|
"@types/vscode": "^1.106.1",
|
|
92
166
|
"@types/which": "^3.0.4",
|
|
93
|
-
"chokidar": "^5.0.0",
|
|
94
|
-
"defu": "^6.1.4",
|
|
95
|
-
"esm-env": "^1.2.2",
|
|
96
|
-
"fast-equals": "^5.4.0",
|
|
97
|
-
"fdir": "6.4.0",
|
|
98
|
-
"fetch-to-node": "^2.1.0",
|
|
99
|
-
"hono": "^4.11.1",
|
|
100
|
-
"immer": "^11.0.1",
|
|
101
|
-
"indent-string": "^5.0.0",
|
|
102
|
-
"json5": "^2.2.3",
|
|
103
|
-
"langium": "3.5.0",
|
|
104
167
|
"langium-cli": "3.5.2",
|
|
105
|
-
"
|
|
106
|
-
"natural-compare-lite": "^1.4.0",
|
|
107
|
-
"oxlint": "1.33.0",
|
|
108
|
-
"p-debounce": "4.0.0",
|
|
109
|
-
"p-queue": "8.1.1",
|
|
110
|
-
"p-timeout": "6.1.4",
|
|
111
|
-
"picomatch": "^4.0.3",
|
|
112
|
-
"pretty-ms": "^9.3.0",
|
|
113
|
-
"remeda": "^2.32.0",
|
|
114
|
-
"strip-indent": "^4.1.1",
|
|
168
|
+
"oxlint": "1.35.0",
|
|
115
169
|
"tsx": "4.21.0",
|
|
116
|
-
"turbo": "2.6
|
|
117
|
-
"type-fest": "^4.41.0",
|
|
170
|
+
"turbo": "2.7.6",
|
|
118
171
|
"typescript": "5.9.3",
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"vitest": "4.0.16",
|
|
122
|
-
"vscode-jsonrpc": "8.2.1",
|
|
123
|
-
"vscode-languageserver": "9.0.1",
|
|
124
|
-
"vscode-languageserver-protocol": "3.17.5",
|
|
125
|
-
"vscode-languageserver-types": "3.17.5",
|
|
126
|
-
"vscode-uri": "3.1.0",
|
|
127
|
-
"which": "^5.0.0",
|
|
128
|
-
"zod": "^3.25.76",
|
|
129
|
-
"@likec4/config": "1.46.4",
|
|
130
|
-
"@likec4/core": "1.46.4",
|
|
172
|
+
"obuild": "^0.4.20",
|
|
173
|
+
"vitest": "4.0.18",
|
|
131
174
|
"@likec4/devops": "1.42.0",
|
|
132
175
|
"@likec4/icons": "1.46.4",
|
|
133
|
-
"@likec4/
|
|
134
|
-
"@likec4/layouts": "1.46.4",
|
|
135
|
-
"@likec4/tsconfig": "1.46.1"
|
|
176
|
+
"@likec4/tsconfig": "1.48.0"
|
|
136
177
|
},
|
|
137
178
|
"scripts": {
|
|
138
179
|
"typecheck": "tsc -b --verbose",
|
|
139
|
-
"build": "
|
|
180
|
+
"build": "obuild",
|
|
140
181
|
"pack": "pnpm pack",
|
|
141
182
|
"pregenerate": "rm -f src/generated/* || true",
|
|
142
183
|
"watch:langium": "langium generate --watch",
|
|
@@ -152,6 +193,9 @@
|
|
|
152
193
|
"vitest:ui": "vitest --no-isolate --ui",
|
|
153
194
|
"test:watch": "vitest"
|
|
154
195
|
},
|
|
155
|
-
"types": "dist/index.d.
|
|
156
|
-
"module": "dist/index.
|
|
196
|
+
"types": "dist/index.d.mts",
|
|
197
|
+
"module": "dist/index.mjs",
|
|
198
|
+
"browser": {
|
|
199
|
+
"dist/index.mjs": "dist/browser.mjs"
|
|
200
|
+
}
|
|
157
201
|
}
|
package/protocol/package.json
CHANGED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { LikeC4ProjectConfig } from '@likec4/config';
|
|
2
|
-
import { type DiagramView, type NonEmptyArray, type ProjectId, type UnknownComputed, type UnknownLayouted } from '@likec4/core';
|
|
3
|
-
import { LikeC4Model } from '@likec4/core/model';
|
|
4
|
-
import { URI } from 'langium';
|
|
5
|
-
import type { CancellationToken } from 'vscode-jsonrpc';
|
|
6
|
-
import type { Range } from 'vscode-languageserver-types';
|
|
7
|
-
import type { LikeC4ModelBuilder } from './model';
|
|
8
|
-
import type { LikeC4ModelChanges } from './model-change/ModelChanges';
|
|
9
|
-
import type { LikeC4Services } from './module';
|
|
10
|
-
import type { Locate } from './protocol';
|
|
11
|
-
import type { LikeC4Views } from './views/LikeC4Views';
|
|
12
|
-
import { ProjectsManager } from './workspace';
|
|
13
|
-
export interface LikeC4LanguageServices {
|
|
14
|
-
readonly views: LikeC4Views;
|
|
15
|
-
readonly builder: LikeC4ModelBuilder;
|
|
16
|
-
readonly workspaceUri: URI;
|
|
17
|
-
readonly projectsManager: ProjectsManager;
|
|
18
|
-
readonly editor: LikeC4ModelChanges;
|
|
19
|
-
/**
|
|
20
|
-
* Returns all projects with relevant documents
|
|
21
|
-
*/
|
|
22
|
-
projects(): NonEmptyArray<{
|
|
23
|
-
id: ProjectId;
|
|
24
|
-
folder: URI;
|
|
25
|
-
title: string;
|
|
26
|
-
documents: ReadonlyArray<URI>;
|
|
27
|
-
config: Readonly<LikeC4ProjectConfig>;
|
|
28
|
-
}>;
|
|
29
|
-
/**
|
|
30
|
-
* Returns project by ID
|
|
31
|
-
* If no project ID is specified, returns default project
|
|
32
|
-
*/
|
|
33
|
-
project(projectId?: ProjectId): {
|
|
34
|
-
id: ProjectId;
|
|
35
|
-
folder: URI;
|
|
36
|
-
title: string;
|
|
37
|
-
documents: ReadonlyArray<URI>;
|
|
38
|
-
config: Readonly<LikeC4ProjectConfig>;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Returns diagrams (i.e. views with layout computed) for the specified project
|
|
42
|
-
* if diagram has manual layout, it will be used
|
|
43
|
-
* If no project is specified, returns diagrams for default project
|
|
44
|
-
*/
|
|
45
|
-
diagrams(project?: ProjectId | undefined, cancelToken?: CancellationToken): Promise<DiagramView[]>;
|
|
46
|
-
computedModel(project?: ProjectId | undefined, cancelToken?: CancellationToken): Promise<LikeC4Model<UnknownComputed>>;
|
|
47
|
-
layoutedModel(project?: ProjectId | undefined, cancelToken?: CancellationToken): Promise<LikeC4Model<UnknownLayouted>>;
|
|
48
|
-
getErrors(): Array<{
|
|
49
|
-
message: string;
|
|
50
|
-
line: number;
|
|
51
|
-
range: Range;
|
|
52
|
-
sourceFsPath: string;
|
|
53
|
-
}>;
|
|
54
|
-
/**
|
|
55
|
-
* Returns the location of the specified element, relation, view or deployment element
|
|
56
|
-
*/
|
|
57
|
-
locate(params: Locate.Params): Locate.Res;
|
|
58
|
-
dispose(): Promise<void>;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Public Language Services
|
|
62
|
-
*/
|
|
63
|
-
export declare class DefaultLikeC4LanguageServices implements LikeC4LanguageServices {
|
|
64
|
-
private services;
|
|
65
|
-
readonly builder: LikeC4ModelBuilder;
|
|
66
|
-
readonly editor: LikeC4ModelChanges;
|
|
67
|
-
readonly projectsManager: ProjectsManager;
|
|
68
|
-
constructor(services: LikeC4Services);
|
|
69
|
-
get views(): LikeC4Views;
|
|
70
|
-
get workspaceUri(): URI;
|
|
71
|
-
projects(): NonEmptyArray<{
|
|
72
|
-
id: ProjectId;
|
|
73
|
-
folder: URI;
|
|
74
|
-
title: string;
|
|
75
|
-
documents: ReadonlyArray<URI>;
|
|
76
|
-
config: LikeC4ProjectConfig;
|
|
77
|
-
}>;
|
|
78
|
-
project(projectId?: ProjectId): {
|
|
79
|
-
id: ProjectId;
|
|
80
|
-
folder: URI;
|
|
81
|
-
title: string;
|
|
82
|
-
documents: ReadonlyArray<URI>;
|
|
83
|
-
config: LikeC4ProjectConfig;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Diagram is a computed view, layouted using Graphviz
|
|
87
|
-
* If diagram has manual layout, it will be used.
|
|
88
|
-
*/
|
|
89
|
-
diagrams(project?: ProjectId | undefined, cancelToken?: CancellationToken): Promise<DiagramView[]>;
|
|
90
|
-
/**
|
|
91
|
-
* Builds LikeC4Model from all documents
|
|
92
|
-
* Only computes view predicates {@link ComputedView} - i.e. no layout
|
|
93
|
-
* Not ready for rendering, but enough to traverse
|
|
94
|
-
*/
|
|
95
|
-
computedModel(project?: ProjectId | undefined, cancelToken?: CancellationToken): Promise<LikeC4Model<UnknownComputed>>;
|
|
96
|
-
/**
|
|
97
|
-
* Same as {@link computedModel()}, but also applies layout
|
|
98
|
-
* Ready for rendering
|
|
99
|
-
*/
|
|
100
|
-
layoutedModel(project?: ProjectId | undefined, cancelToken?: CancellationToken): Promise<LikeC4Model<UnknownLayouted>>;
|
|
101
|
-
getErrors(): Array<{
|
|
102
|
-
message: string;
|
|
103
|
-
line: number;
|
|
104
|
-
range: Range;
|
|
105
|
-
sourceFsPath: string;
|
|
106
|
-
}>;
|
|
107
|
-
locate(params: Locate.Params): Locate.Res;
|
|
108
|
-
dispose(): Promise<void>;
|
|
109
|
-
}
|