likec4 1.54.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.
@@ -110,12 +110,12 @@ const theme = createTheme({
110
110
  component: RootComponent
111
111
  });
112
112
  function RootComponent() {
113
- const { theme: theme$1 } = Route$2.useSearch(), forceColorScheme = resolveForceColorScheme(theme$1);
113
+ const { theme: theme$1 } = Route$2.useSearch(), forceColorScheme = resolveForceColorScheme(theme$1), defaultColorScheme = theme$1 === "auto" ? "auto" : __DEFAULT_THEME__;
114
114
  return /* @__PURE__ */ jsx(
115
115
  MantineProvider,
116
116
  {
117
117
  theme,
118
- defaultColorScheme: "auto",
118
+ defaultColorScheme,
119
119
  ...forceColorScheme && { forceColorScheme },
120
120
  children: /* @__PURE__ */ jsx(Outlet, {})
121
121
  }
@@ -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-2-Clause, BSD-3-Clause, ISC, MIT, (MIT AND Zlib)
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
@@ -1,4 +1,4 @@
1
- import { C as $strip, S as $strict, _ as ZodTransform, a as ZodBoolean, b as output, c as ZodEnum, d as ZodNumber, f as ZodObject, g as ZodString, h as ZodRecord, i as ZodArray, l as ZodInt, m as ZodPipe, o as ZodCustom, p as ZodOptional, r as ZodAny, s as ZodDefault, u as ZodLiteral, v as ZodUnion, x as $partial, y as input } from "./libs/@modelcontextprotocol/sdk.mjs";
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;