likec4 1.48.0 → 1.49.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/README.md +11 -1
- package/__app__/src/likec4.js +5595 -4127
- package/__app__/src/routes/index.js +3 -153
- package/__app__/src/routes/projects.js +21 -1087
- package/__app__/src/routes/single.js +1221 -16
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +3507 -894
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +155 -143
- package/dist/THIRD-PARTY-LICENSES.md +1739 -0
- package/dist/_chunks/GraphvizBinaryAdapter.mjs +72 -0
- package/dist/_chunks/filenames.mjs +14 -0
- package/dist/_chunks/index.d.mts +224 -129
- package/dist/_chunks/index2.d.mts +2033 -1908
- package/dist/_chunks/libs/@chevrotain/gast.mjs +1 -3969
- package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +9 -785
- package/dist/_chunks/libs/@chevrotain/utils.mjs +1 -37
- package/dist/_chunks/libs/@hono/mcp.mjs +34 -0
- package/dist/_chunks/libs/@hono/node-server.mjs +1 -436
- package/dist/_chunks/libs/@logtape/logtape.d.mts +741 -0
- package/dist/_chunks/libs/@logtape/logtape.mjs +6 -1354
- package/dist/_chunks/libs/@lume/kiwi.mjs +1 -1355
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +14 -14
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +12 -25105
- package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -1503
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -30
- package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -100
- package/dist/_chunks/libs/ajv.mjs +1 -777
- package/dist/_chunks/libs/atomically.mjs +1 -362
- package/dist/_chunks/libs/birpc.mjs +1 -201
- package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -850
- package/dist/_chunks/libs/chevrotain.mjs +55 -6229
- package/dist/_chunks/libs/conf.mjs +1 -2258
- package/dist/_chunks/libs/defu.mjs +1 -42
- package/dist/_chunks/libs/esm-env.mjs +1 -5
- package/dist/_chunks/libs/eventemitter3.mjs +1 -243
- package/dist/_chunks/libs/fast-equals.mjs +1 -446
- package/dist/_chunks/libs/find-up-simple.mjs +1 -24
- package/dist/_chunks/libs/get-port.mjs +1 -107
- package/dist/_chunks/libs/is-docker.mjs +1 -26
- package/dist/_chunks/libs/is-error-instance.mjs +1 -26
- package/dist/_chunks/libs/is-inside-container.mjs +1 -20
- package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
- package/dist/_chunks/libs/isexe.mjs +1 -127
- package/dist/_chunks/libs/json5.mjs +14 -959
- package/dist/_chunks/libs/khroma.mjs +1 -605
- package/dist/_chunks/libs/ky.mjs +2 -807
- package/dist/_chunks/libs/langium.d.mts +2880 -2844
- package/dist/_chunks/libs/langium.mjs +32 -20351
- package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
- package/dist/_chunks/libs/nanostores.mjs +1 -198
- package/dist/_chunks/libs/p-limit.mjs +1 -120
- package/dist/_chunks/libs/p-queue.mjs +1 -449
- package/dist/_chunks/libs/package-manager-detector.mjs +1 -559
- package/dist/_chunks/libs/package-up.mjs +1 -10
- package/dist/_chunks/libs/parse-ms.mjs +1 -36
- package/dist/_chunks/libs/pathe.mjs +1 -0
- package/dist/_chunks/libs/picomatch.mjs +1 -1673
- package/dist/_chunks/libs/pretty-ms.mjs +1 -80
- package/dist/_chunks/libs/remeda.mjs +1 -690
- package/dist/_chunks/libs/safe-stringify.mjs +1 -21
- package/dist/_chunks/libs/strip-indent.mjs +1 -15
- package/dist/_chunks/libs/tinyrainbow.mjs +1 -88
- package/dist/_chunks/libs/ts-graphviz.mjs +4 -725
- package/dist/_chunks/libs/ufo.mjs +1 -240
- package/dist/_chunks/libs/which.mjs +1 -84
- package/dist/_chunks/libs/word-wrap.mjs +12 -43
- package/dist/_chunks/node.mjs +481 -0
- package/dist/_chunks/plugin.mjs +98 -772
- package/dist/_chunks/rolldown-runtime.mjs +1 -48
- package/dist/_chunks/sequence-view.mjs +1 -575
- package/dist/cli/index.mjs +127 -1846
- package/dist/config/index.d.mts +2 -2
- package/dist/config/index.mjs +1 -6
- package/dist/index.d.mts +148 -7
- package/dist/index.mjs +1 -21
- package/dist/model/builder.mjs +1 -3
- package/dist/model/index.d.mts +57 -3
- package/dist/model/index.mjs +1 -5
- package/dist/vite-plugin/index.d.mts +4 -3
- package/dist/vite-plugin/index.mjs +1 -22
- package/dist/vite-plugin/internal.d.mts +5 -5
- package/dist/vite-plugin/internal.mjs +1 -68
- package/package.json +60 -41
- package/react/{index.d.ts → index.d.mts} +112 -70
- package/react/{index.js → index.mjs} +21361 -22064
- package/react/package.json +2 -5
- package/vite-plugin-modules.d.ts +5 -5
- package/dist/_chunks/LikeC4.d.mts +0 -121
- package/dist/_chunks/LikeC4.mjs +0 -202
- package/dist/_chunks/config-app.prod.d.mts +0 -18
- package/dist/_chunks/config-app.prod.mjs +0 -188
- package/dist/_chunks/config-webcomponent.prod.mjs +0 -71
- package/dist/_chunks/define-config.mjs +0 -409
- package/dist/_chunks/index3.d.mts +0 -60
- package/dist/_chunks/index4.d.mts +0 -1
- package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +0 -10
- package/dist/_chunks/libs/hono.mjs +0 -1829
- package/dist/_chunks/libs/nanoid.mjs +0 -29
- package/dist/_chunks/model.mjs +0 -12
- package/dist/_chunks/module.d.mts +0 -71
- package/dist/_chunks/module.mjs +0 -18657
- package/dist/_chunks/vite-build.mjs +0 -69
- package/dist/_chunks/vite-dev.mjs +0 -79
- package/dist/_chunks/vite-preview.mjs +0 -27
- package/dist/language/module.d.mts +0 -5
- package/dist/language/module.mjs +0 -20
- package/dist/vite/vite-build.d.mts +0 -26
- package/dist/vite/vite-build.mjs +0 -27
- package/dist/vite/vite-dev.d.mts +0 -34
- package/dist/vite/vite-dev.mjs +0 -29
- package/dist/vite/vite-preview.d.mts +0 -20
- package/dist/vite/vite-preview.mjs +0 -26
package/dist/config/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../_chunks/libs/@modelcontextprotocol/sdk.mjs";
|
|
2
|
-
import { _ as
|
|
3
|
-
export { type GeneratorFn, type GeneratorFnContext, type GeneratorFnParams, type LikeC4ProjectConfig, type LikeC4ProjectConfigInput, type LikeC4ProjectJsonConfig, type LikeC4StylesConfig, type LikeC4StylesConfigInput, defineConfig, defineGenerators, defineStyle, defineTheme, defineThemeColor, isLikeC4Config, isLikeC4JsonConfig, isLikeC4NonJsonConfig };
|
|
2
|
+
import { _ as isLikeC4JsonConfig, a as LikeC4ProjectConfig, c as LikeC4ProjectJsonConfig, d as defineConfig, f as defineGenerators, g as isLikeC4Config, h as defineThemeColor, l as LikeC4StylesConfig, m as defineTheme, n as GeneratorFnContext, o as LikeC4ProjectConfigInput, p as defineStyle, r as GeneratorFnParams, s as LikeC4ProjectConfigOps, t as GeneratorFn, u as LikeC4StylesConfigInput, v as isLikeC4NonJsonConfig } from "../_chunks/index.mjs";
|
|
3
|
+
export { type GeneratorFn, type GeneratorFnContext, type GeneratorFnParams, type LikeC4ProjectConfig, type LikeC4ProjectConfigInput, LikeC4ProjectConfigOps, type LikeC4ProjectJsonConfig, type LikeC4StylesConfig, type LikeC4StylesConfigInput, defineConfig, defineGenerators, defineStyle, defineTheme, defineThemeColor, isLikeC4Config, isLikeC4JsonConfig, isLikeC4NonJsonConfig };
|
package/dist/config/index.mjs
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../_chunks/libs/json5.mjs";
|
|
3
|
-
import "../_chunks/libs/@modelcontextprotocol/sdk.mjs";
|
|
4
|
-
import { a as defineThemeColor, c as isLikeC4NonJsonConfig, i as defineTheme, n as defineGenerators, o as isLikeC4Config, r as defineStyle, s as isLikeC4JsonConfig, t as defineConfig } from "../_chunks/define-config.mjs";
|
|
5
|
-
|
|
6
|
-
export { defineConfig, defineGenerators, defineStyle, defineTheme, defineThemeColor, isLikeC4Config, isLikeC4JsonConfig, isLikeC4NonJsonConfig };
|
|
1
|
+
import"../_chunks/rolldown-runtime.mjs";import"../_chunks/libs/@hono/mcp.mjs";import{a as LikeC4ProjectConfigOps,d as ThemeColorValuesSchema,i as GeneratorsSchema,l as LikeC4Config_Styles_Theme,n as isLikeC4JsonConfig,o as LikeC4ProjectConfigSchema,r as isLikeC4NonJsonConfig,t as isLikeC4Config,u as LikeC4StylesConfigSchema}from"../_chunks/filenames.mjs";function defineConfig(e){return LikeC4ProjectConfigSchema.parse(e)}function defineGenerators(e){return GeneratorsSchema.parse(e)}function defineThemeColor(e){return ThemeColorValuesSchema.parse(e)}function defineTheme(e){return LikeC4Config_Styles_Theme.parse(e)}function defineStyle(e){return LikeC4StylesConfigSchema.parse(e)}export{LikeC4ProjectConfigOps,defineConfig,defineGenerators,defineStyle,defineTheme,defineThemeColor,isLikeC4Config,isLikeC4JsonConfig,isLikeC4NonJsonConfig};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,151 @@
|
|
|
1
|
-
import "./_chunks/rolldown-runtime.mjs";
|
|
2
1
|
import "./_chunks/libs/@modelcontextprotocol/sdk.mjs";
|
|
3
2
|
import "./_chunks/index.mjs";
|
|
4
|
-
import "./_chunks/
|
|
5
|
-
import "./_chunks/
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import "
|
|
3
|
+
import { t as Logger$1 } from "./_chunks/libs/@logtape/logtape.mjs";
|
|
4
|
+
import { a as LikeC4Services, i as ProjectsManager, n as LikeC4ModelBuilder, o as LikeC4SharedServices, r as LikeC4Views, t as LikeC4LanguageServices } from "./_chunks/index2.mjs";
|
|
5
|
+
import { LikeC4Model } from "@likec4/core/model";
|
|
6
|
+
import { LayoutedView, NonEmptyArray, ProjectId } from "@likec4/core/types";
|
|
7
|
+
import "boxen";
|
|
8
|
+
import "vite";
|
|
9
9
|
export * from "@likec4/core/types";
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
//#region ../language-services/dist/_chunks/options.d.mts
|
|
12
|
+
//#region src/common/LikeC4.d.ts
|
|
13
|
+
interface LikeC4Langium {
|
|
14
|
+
shared: LikeC4SharedServices;
|
|
15
|
+
likec4: LikeC4Services;
|
|
16
|
+
}
|
|
17
|
+
declare class LikeC4$1 {
|
|
18
|
+
protected readonly langium: LikeC4Langium;
|
|
19
|
+
protected readonly logger: Logger$1;
|
|
20
|
+
constructor(langium: LikeC4Langium, logger?: Logger$1);
|
|
21
|
+
/**
|
|
22
|
+
* File system path to the workspace root
|
|
23
|
+
*/
|
|
24
|
+
get workspace(): any;
|
|
25
|
+
/**
|
|
26
|
+
* URI of the workspace root
|
|
27
|
+
*/
|
|
28
|
+
get workspaceURI(): any;
|
|
29
|
+
/**
|
|
30
|
+
* URL of the workspace root
|
|
31
|
+
*/
|
|
32
|
+
get workspaceURL(): any;
|
|
33
|
+
get languageServices(): LikeC4LanguageServices;
|
|
34
|
+
get projectsManager(): ProjectsManager;
|
|
35
|
+
get viewsService(): LikeC4Views;
|
|
36
|
+
get modelBuilder(): LikeC4ModelBuilder;
|
|
37
|
+
private get LangiumDocuments();
|
|
38
|
+
ensureSingleProject(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Diagram is a computed view, layouted using Graphviz
|
|
41
|
+
* If diagram has manual layout, it will be used.
|
|
42
|
+
* Used in React components
|
|
43
|
+
*/
|
|
44
|
+
diagrams(project?: string | undefined): Promise<LayoutedView[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Builds LikeC4Model from all documents
|
|
47
|
+
* Only computes view predicates {@link ComputedView} - i.e. no layout
|
|
48
|
+
* Not ready for rendering, but enough to traverse
|
|
49
|
+
*
|
|
50
|
+
* Sync version does not read manual layouts
|
|
51
|
+
* Use {@link computedModel} for a version that includes manual layouts
|
|
52
|
+
*/
|
|
53
|
+
syncComputedModel(project?: string | undefined): LikeC4Model.Computed;
|
|
54
|
+
/**
|
|
55
|
+
* Builds LikeC4Model from all documents
|
|
56
|
+
* Only computes view predicates {@link ComputedView} - i.e. no layout
|
|
57
|
+
* Not ready for rendering, but enough to traverse
|
|
58
|
+
*/
|
|
59
|
+
computedModel(project?: string | undefined): Promise<LikeC4Model.Computed>;
|
|
60
|
+
projects(): NonEmptyArray<ProjectId>;
|
|
61
|
+
/**
|
|
62
|
+
* Same as {@link computedModel()}, but also applies layout
|
|
63
|
+
* Ready for rendering
|
|
64
|
+
*/
|
|
65
|
+
layoutedModel(project?: string | undefined): Promise<LikeC4Model.Layouted>;
|
|
66
|
+
getErrors(): Array<{
|
|
67
|
+
message: string;
|
|
68
|
+
line: number;
|
|
69
|
+
range: {
|
|
70
|
+
start: {
|
|
71
|
+
line: number;
|
|
72
|
+
character: number;
|
|
73
|
+
};
|
|
74
|
+
end: {
|
|
75
|
+
line: number;
|
|
76
|
+
character: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
sourceFsPath: string;
|
|
80
|
+
}>;
|
|
81
|
+
hasErrors(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @returns true if there are errors
|
|
84
|
+
*/
|
|
85
|
+
printErrors(): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @returns a function to dispose the listener
|
|
88
|
+
*/
|
|
89
|
+
onModelUpdate(listener: () => void): () => void;
|
|
90
|
+
dispose(): Promise<void>;
|
|
91
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
92
|
+
} //#endregion
|
|
93
|
+
//#region src/common/options.d.ts
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/logger.d.ts
|
|
96
|
+
type Logger = {
|
|
97
|
+
info(msg: string): void;
|
|
98
|
+
warn(msg: unknown): void;
|
|
99
|
+
error(err: unknown): void;
|
|
100
|
+
};
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/LikeC4.d.ts
|
|
103
|
+
type LikeC4Options = {
|
|
104
|
+
/**
|
|
105
|
+
* By default, if LikeC4 model is invalid, errors are printed to the console.
|
|
106
|
+
* Disable this behavior by setting this option to false.
|
|
107
|
+
*
|
|
108
|
+
* @default true
|
|
109
|
+
*/
|
|
110
|
+
printErrors?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* If true, initialization will return rejected promise with the LikeC4 instance.
|
|
113
|
+
* Use `likec4.getErrors()` to get the errors.
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
throwIfInvalid?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Logger to use for the language service.
|
|
119
|
+
* false - no output
|
|
120
|
+
* @default 'default'
|
|
121
|
+
*/
|
|
122
|
+
logger?: Logger | 'vite' | 'default' | false;
|
|
123
|
+
/**
|
|
124
|
+
* Whether to use the `dot` binary for layouting or the WebAssembly version.
|
|
125
|
+
* @default 'wasm'
|
|
126
|
+
*/
|
|
127
|
+
graphviz?: 'wasm' | 'binary';
|
|
128
|
+
/**
|
|
129
|
+
* Whether to start MCP server
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
mcp?: false | 'stdio' | {
|
|
133
|
+
port: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Whether to watch for changes in the workspace.
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
watch?: boolean;
|
|
140
|
+
};
|
|
141
|
+
interface LikeC4 extends LikeC4$1 {}
|
|
142
|
+
declare namespace LikeC4 {
|
|
143
|
+
function fromSource(likec4SourceCode: string, opts?: LikeC4Options): Promise<LikeC4>;
|
|
144
|
+
/**
|
|
145
|
+
* Initializes a LikeC4 instance from the specified workspace path.
|
|
146
|
+
* By default in current folder
|
|
147
|
+
*/
|
|
148
|
+
function fromWorkspace(path?: string, opts?: LikeC4Options): Promise<LikeC4>;
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
export { LikeC4, type LikeC4Options };
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./_chunks/libs/defu.mjs";
|
|
3
|
-
import "./_chunks/libs/langium.mjs";
|
|
4
|
-
import "./_chunks/libs/@chevrotain/regexp-to-ast.mjs";
|
|
5
|
-
import "./_chunks/libs/chevrotain.mjs";
|
|
6
|
-
import "./_chunks/libs/chevrotain-allstar.mjs";
|
|
7
|
-
import "./_chunks/libs/tinyrainbow.mjs";
|
|
8
|
-
import "./_chunks/module.mjs";
|
|
9
|
-
import "./_chunks/libs/json5.mjs";
|
|
10
|
-
import "./_chunks/libs/@modelcontextprotocol/sdk.mjs";
|
|
11
|
-
import "./_chunks/libs/eventemitter3.mjs";
|
|
12
|
-
import "./_chunks/libs/@hono/node-server.mjs";
|
|
13
|
-
import "./_chunks/libs/hono.mjs";
|
|
14
|
-
import "./_chunks/libs/@lume/kiwi.mjs";
|
|
15
|
-
import "./_chunks/libs/ts-graphviz.mjs";
|
|
16
|
-
import "./_chunks/libs/word-wrap.mjs";
|
|
17
|
-
import "./_chunks/libs/isexe.mjs";
|
|
18
|
-
import "./_chunks/libs/which.mjs";
|
|
19
|
-
import { t as LikeC4 } from "./_chunks/LikeC4.mjs";
|
|
20
|
-
|
|
21
|
-
export { LikeC4 };
|
|
1
|
+
import"./_chunks/rolldown-runtime.mjs";import"./_chunks/libs/defu.mjs";import"./_chunks/libs/tinyrainbow.mjs";import"./_chunks/libs/@hono/mcp.mjs";import"./_chunks/libs/langium.mjs";import"./_chunks/libs/@chevrotain/regexp-to-ast.mjs";import"./_chunks/libs/chevrotain.mjs";import"./_chunks/libs/chevrotain-allstar.mjs";import"./_chunks/libs/eventemitter3.mjs";import"./_chunks/libs/@lume/kiwi.mjs";import"./_chunks/libs/ts-graphviz.mjs";import"./_chunks/libs/word-wrap.mjs";import"./_chunks/libs/isexe.mjs";import"./_chunks/libs/which.mjs";import{n as fromWorkspace,t as fromSource}from"./_chunks/node.mjs";import"./_chunks/libs/@modelcontextprotocol/sdk.mjs";import"./_chunks/libs/@hono/node-server.mjs";let LikeC4;(function(n){async function r(e,n){return fromSource(e,n)}n.fromSource=r;async function i(t=`.`,n){return fromWorkspace(t,n)}n.fromWorkspace=i})(LikeC4||={});export{LikeC4};
|
package/dist/model/builder.mjs
CHANGED
package/dist/model/index.d.mts
CHANGED
|
@@ -1,4 +1,58 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
1
|
+
import { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationEndpoint, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4DeploymentModel, LikeC4Model, LikeC4Model as LikeC4Model$1, LikeC4ViewModel, NodeModel, RelationshipModel, deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel, mergeConnections, modelConnection, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from "@likec4/core/model";
|
|
2
|
+
import * as types from "@likec4/core/types";
|
|
3
|
+
import { BBox, LayoutedDynamicView, NodeId, ViewId } from "@likec4/core/types";
|
|
4
|
+
import { ComputedProjectEdge, ComputedProjectNode, ComputedProjectsView, LayoutedProjectEdge, LayoutedProjectNode, LayoutedProjectsView } from "@likec4/core/compute-view";
|
|
3
5
|
export * from "@likec4/core/types";
|
|
4
|
-
|
|
6
|
+
|
|
7
|
+
//#region ../layouts/dist/sequence/index.d.mts
|
|
8
|
+
//#region src/sequence/_types.d.ts
|
|
9
|
+
interface SequenceActorStepPort {
|
|
10
|
+
id: string;
|
|
11
|
+
cx: number;
|
|
12
|
+
cy: number;
|
|
13
|
+
height: number;
|
|
14
|
+
type: 'target' | 'source';
|
|
15
|
+
position: 'left' | 'right' | 'top' | 'bottom';
|
|
16
|
+
}
|
|
17
|
+
interface SequenceActor {
|
|
18
|
+
id: NodeId;
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
ports: Array<SequenceActorStepPort>;
|
|
24
|
+
}
|
|
25
|
+
interface SequenceCompound {
|
|
26
|
+
id: NodeId;
|
|
27
|
+
origin: NodeId;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
depth: number;
|
|
33
|
+
}
|
|
34
|
+
interface SequenceParallelArea {
|
|
35
|
+
parallelPrefix: string;
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
}
|
|
41
|
+
interface SequenceViewLayout {
|
|
42
|
+
id: ViewId;
|
|
43
|
+
actors: Array<SequenceActor>;
|
|
44
|
+
compounds: Array<SequenceCompound>;
|
|
45
|
+
parallelAreas: Array<SequenceParallelArea>;
|
|
46
|
+
bounds: BBox;
|
|
47
|
+
} //#endregion
|
|
48
|
+
//#region src/sequence/sequence-view.d.ts
|
|
49
|
+
declare function calcSequenceLayout(view: LayoutedDynamicView): LayoutedDynamicView.Sequence.Layout; //#endregion
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/model/index.d.ts
|
|
52
|
+
type UnknownLayouted = types.UnknownLayouted;
|
|
53
|
+
/**
|
|
54
|
+
* Used by vite plugin to generate `virtual:likec4/model`
|
|
55
|
+
*/
|
|
56
|
+
declare function createLikeC4Model(model: any): LikeC4Model$1<UnknownLayouted>;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { type ComputedProjectEdge, type ComputedProjectNode, type ComputedProjectsView, Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, type DeploymentElementModel, DeploymentNodeModel, type DeploymentRelationEndpoint, DeploymentRelationModel, EdgeModel, ElementModel, type LayoutedProjectEdge, type LayoutedProjectNode, type LayoutedProjectsView, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, NodeModel, RelationshipModel, type SequenceViewLayout, UnknownLayouted, calcSequenceLayout, createLikeC4Model, deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel, mergeConnections, modelConnection, sortConnectionsByBoundaryHierarchy, sortDeepestFirst, type types };
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../_chunks/libs/@lume/kiwi.mjs";
|
|
3
|
-
import { A as isIncoming, B as sortDeepestFirst, C as isAnyInOut, D as isDeploymentRelationModel, E as isDeploymentNodeModel, F as isOutgoing, I as isRelationModel, L as mergeConnections, M as isNestedConnection, N as isNestedElementOfDeployedInstanceModel, O as isEdgeModel, P as isNodeModel, R as modelConnection, S as hasSameTarget, T as isDeploymentElementModel, _ as findAscendingConnections, a as DeploymentNodeModel, b as hasSameSource, c as ElementModel, d as LikeC4ViewModel, f as NodeModel, g as differenceConnections, h as deploymentConnection, i as DeploymentConnectionModel, j as isLikeC4ViewModel, k as isElementModel, l as LikeC4DeploymentModel, m as createLikeC4Model, n as ConnectionModel, o as DeploymentRelationModel, p as RelationshipModel, r as DeployedInstanceModel, s as EdgeModel, t as Connection, u as LikeC4Model, v as findDeepestNestedConnection, w as isDeployedInstanceModel, x as hasSameSourceTarget, y as findDescendantConnections, z as sortConnectionsByBoundaryHierarchy } from "../_chunks/model.mjs";
|
|
4
|
-
|
|
5
|
-
export { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, NodeModel, RelationshipModel, calcSequenceLayout, createLikeC4Model, deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel, mergeConnections, modelConnection, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
|
1
|
+
import{t as calcSequenceLayout}from"../_chunks/sequence-view.mjs";import"../_chunks/libs/@lume/kiwi.mjs";import{Connection,ConnectionModel,DeployedInstanceModel,DeploymentConnectionModel,DeploymentNodeModel,DeploymentRelationModel,EdgeModel,ElementModel,LikeC4DeploymentModel,LikeC4Model,LikeC4Model as LikeC4Model$1,LikeC4ViewModel,NodeModel,RelationshipModel,deploymentConnection,differenceConnections,findAscendingConnections,findDeepestNestedConnection,findDescendantConnections,hasSameSource,hasSameSourceTarget,hasSameTarget,isAnyInOut,isDeployedInstanceModel,isDeploymentElementModel,isDeploymentNodeModel,isDeploymentRelationModel,isEdgeModel,isElementModel,isIncoming,isLikeC4ViewModel,isNestedConnection,isNestedElementOfDeployedInstanceModel,isNodeModel,isOutgoing,isRelationModel,mergeConnections,modelConnection,sortConnectionsByBoundaryHierarchy,sortDeepestFirst}from"@likec4/core/model";function createLikeC4Model(e){return LikeC4Model$1.create(e)}export{Connection,ConnectionModel,DeployedInstanceModel,DeploymentConnectionModel,DeploymentNodeModel,DeploymentRelationModel,EdgeModel,ElementModel,LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel,NodeModel,RelationshipModel,calcSequenceLayout,createLikeC4Model,deploymentConnection,differenceConnections,findAscendingConnections,findDeepestNestedConnection,findDescendantConnections,hasSameSource,hasSameSourceTarget,hasSameTarget,isAnyInOut,isDeployedInstanceModel,isDeploymentElementModel,isDeploymentNodeModel,isDeploymentRelationModel,isEdgeModel,isElementModel,isIncoming,isLikeC4ViewModel,isNestedConnection,isNestedElementOfDeployedInstanceModel,isNodeModel,isOutgoing,isRelationModel,mergeConnections,modelConnection,sortConnectionsByBoundaryHierarchy,sortDeepestFirst};
|
|
@@ -3,7 +3,8 @@ import "../_chunks/index.mjs";
|
|
|
3
3
|
import { t as LikeC4LanguageServices } from "../_chunks/index2.mjs";
|
|
4
4
|
import { Plugin } from "vite";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../vite-plugin/dist/index.d.mts
|
|
7
|
+
//#region src/plugin.d.ts
|
|
7
8
|
type SharedOptions = {
|
|
8
9
|
/**
|
|
9
10
|
* Define vite environments where this plugin should be active
|
|
@@ -43,7 +44,7 @@ type LikeC4VitePluginOptions = SharedOptions & ({
|
|
|
43
44
|
languageServices?: never;
|
|
44
45
|
} | {
|
|
45
46
|
/**
|
|
46
|
-
* If you have instance of {@link
|
|
47
|
+
* If you have instance of {@link LikeC4LanguageServices}
|
|
47
48
|
* you can pass `languageServices` from it.
|
|
48
49
|
*/
|
|
49
50
|
languageServices: LikeC4LanguageServices;
|
|
@@ -56,6 +57,6 @@ type LikeC4VitePluginOptions = SharedOptions & ({
|
|
|
56
57
|
declare function LikeC4VitePlugin({
|
|
57
58
|
environments,
|
|
58
59
|
...opts
|
|
59
|
-
}: LikeC4VitePluginOptions): Plugin;
|
|
60
|
+
}: LikeC4VitePluginOptions): Plugin; //#endregion
|
|
60
61
|
//#endregion
|
|
61
62
|
export { LikeC4VitePlugin, type LikeC4VitePluginOptions };
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../_chunks/libs/defu.mjs";
|
|
3
|
-
import "../_chunks/libs/langium.mjs";
|
|
4
|
-
import "../_chunks/libs/@chevrotain/regexp-to-ast.mjs";
|
|
5
|
-
import "../_chunks/libs/chevrotain.mjs";
|
|
6
|
-
import "../_chunks/libs/chevrotain-allstar.mjs";
|
|
7
|
-
import "../_chunks/libs/tinyrainbow.mjs";
|
|
8
|
-
import "../_chunks/module.mjs";
|
|
9
|
-
import "../_chunks/libs/json5.mjs";
|
|
10
|
-
import "../_chunks/libs/@modelcontextprotocol/sdk.mjs";
|
|
11
|
-
import "../_chunks/libs/eventemitter3.mjs";
|
|
12
|
-
import "../_chunks/libs/@hono/node-server.mjs";
|
|
13
|
-
import "../_chunks/libs/hono.mjs";
|
|
14
|
-
import "../_chunks/libs/@lume/kiwi.mjs";
|
|
15
|
-
import "../_chunks/libs/ts-graphviz.mjs";
|
|
16
|
-
import "../_chunks/libs/word-wrap.mjs";
|
|
17
|
-
import "../_chunks/libs/isexe.mjs";
|
|
18
|
-
import "../_chunks/libs/which.mjs";
|
|
19
|
-
import "../_chunks/LikeC4.mjs";
|
|
20
|
-
import { t as LikeC4VitePlugin } from "../_chunks/plugin.mjs";
|
|
21
|
-
|
|
22
|
-
export { LikeC4VitePlugin };
|
|
1
|
+
import"../_chunks/rolldown-runtime.mjs";import"../_chunks/libs/defu.mjs";import"../_chunks/libs/tinyrainbow.mjs";import"../_chunks/libs/@hono/mcp.mjs";import"../_chunks/libs/langium.mjs";import"../_chunks/libs/@chevrotain/regexp-to-ast.mjs";import"../_chunks/libs/chevrotain.mjs";import"../_chunks/libs/chevrotain-allstar.mjs";import"../_chunks/libs/eventemitter3.mjs";import"../_chunks/libs/@lume/kiwi.mjs";import"../_chunks/libs/ts-graphviz.mjs";import"../_chunks/libs/word-wrap.mjs";import"../_chunks/libs/isexe.mjs";import"../_chunks/libs/which.mjs";import{t as LikeC4VitePlugin}from"../_chunks/plugin.mjs";export{LikeC4VitePlugin};
|
|
@@ -3,7 +3,8 @@ import { n as computed, t as batched } from "../_chunks/libs/nanostores.mjs";
|
|
|
3
3
|
import { LayoutedElementView, ProjectId, ViewChange, ViewId } from "@likec4/core/types";
|
|
4
4
|
import { AdhocViewPredicate } from "@likec4/core/compute-view";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../vite-plugin/dist/internal.d.mts
|
|
7
|
+
//#region src/rpc/protocol.d.ts
|
|
7
8
|
interface LikeC4VitePluginRpc {
|
|
8
9
|
/**
|
|
9
10
|
* Send a view change to the server
|
|
@@ -22,9 +23,8 @@ interface LikeC4VitePluginRpc {
|
|
|
22
23
|
projectId: ProjectId;
|
|
23
24
|
predicates: AdhocViewPredicate[];
|
|
24
25
|
}): Promise<LayoutedElementView>;
|
|
25
|
-
}
|
|
26
|
-
//#
|
|
27
|
-
//#region src/vite-plugin/internal.d.ts
|
|
26
|
+
} //#endregion
|
|
27
|
+
//#region src/internal.d.ts
|
|
28
28
|
interface LikeC4VitePluginRpcOptions {
|
|
29
29
|
/**
|
|
30
30
|
* Function to post raw message
|
|
@@ -40,6 +40,6 @@ interface LikeC4VitePluginRpcOptions {
|
|
|
40
40
|
* used by the Vite plugin in virtual modules
|
|
41
41
|
*/
|
|
42
42
|
declare function createRpc(options: LikeC4VitePluginRpcOptions): LikeC4VitePluginRpc;
|
|
43
|
-
declare const createHooksForModel: ($atom: WritableAtom) => any;
|
|
43
|
+
declare const createHooksForModel: ($atom: WritableAtom) => any; //#endregion
|
|
44
44
|
//#endregion
|
|
45
45
|
export { type Atom, type LikeC4VitePluginRpc, LikeC4VitePluginRpcOptions, type ReadableAtom, type WritableAtom, atom, batched, computed, createHooksForModel, createRpc, map, useStore };
|
|
@@ -1,68 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createBirpc } from "../_chunks/libs/birpc.mjs";
|
|
3
|
-
import { i as atom, n as batched, r as computed, t as map } from "../_chunks/libs/nanostores.mjs";
|
|
4
|
-
import { t as useStore } from "../_chunks/libs/@nanostores/react.mjs";
|
|
5
|
-
import { LikeC4Model } from "@likec4/core/model";
|
|
6
|
-
import { useEffect, useState } from "react";
|
|
7
|
-
|
|
8
|
-
//#region src/vite-plugin/internal.ts
|
|
9
|
-
/**
|
|
10
|
-
* This module is used by the Vite plugin to generate the virtual modules
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Create a PluginRPC instance for the LikeC4 Vite plugin
|
|
14
|
-
* used by the Vite plugin in virtual modules
|
|
15
|
-
*/
|
|
16
|
-
function createRpc(options) {
|
|
17
|
-
return createBirpc({}, {
|
|
18
|
-
post: (data) => options.send("likec4:rpc", data),
|
|
19
|
-
on: (fn) => options.on("likec4:rpc", fn),
|
|
20
|
-
onGeneralError(error, functionName) {
|
|
21
|
-
console.error(`RPC error in ${functionName}`, { error });
|
|
22
|
-
},
|
|
23
|
-
onFunctionError: (error, functionName) => {
|
|
24
|
-
console.error(`RPC error in ${functionName}`, { error });
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
const createHooksForModel = ($atom) => {
|
|
29
|
-
const $likec4model = /* @__PURE__ */ computed($atom, (data) => LikeC4Model.create(data));
|
|
30
|
-
function updateModel(data) {
|
|
31
|
-
const current = $atom.get();
|
|
32
|
-
if (t(current, data)) return;
|
|
33
|
-
const next = {
|
|
34
|
-
...data,
|
|
35
|
-
views: t$1(data.views, (next) => {
|
|
36
|
-
const currentView = current.views[next.id];
|
|
37
|
-
return t(currentView, next) ? currentView : next;
|
|
38
|
-
})
|
|
39
|
-
};
|
|
40
|
-
$atom.set(next);
|
|
41
|
-
}
|
|
42
|
-
const $likec4views = /* @__PURE__ */ computed($atom, (model) => Object.values(model.views));
|
|
43
|
-
function useLikeC4Model() {
|
|
44
|
-
return useStore($likec4model);
|
|
45
|
-
}
|
|
46
|
-
function useLikeC4Views() {
|
|
47
|
-
return useStore($likec4views);
|
|
48
|
-
}
|
|
49
|
-
function useLikeC4View(viewId) {
|
|
50
|
-
const [view, setView] = useState($atom.value?.views[viewId] ?? null);
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
return $atom.subscribe((next) => {
|
|
53
|
-
setView(next.views[viewId] ?? null);
|
|
54
|
-
});
|
|
55
|
-
}, [viewId]);
|
|
56
|
-
return view;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
updateModel,
|
|
60
|
-
$likec4model,
|
|
61
|
-
useLikeC4Model,
|
|
62
|
-
useLikeC4Views,
|
|
63
|
-
useLikeC4View
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
//#endregion
|
|
68
|
-
export { atom, batched, computed, createHooksForModel, createRpc, map, useStore };
|
|
1
|
+
import{i as atom,n as batched,r as computed,t as map}from"../_chunks/libs/nanostores.mjs";import{t as useStore}from"../_chunks/libs/@nanostores/react.mjs";import{t as createBirpc}from"../_chunks/libs/birpc.mjs";import{F as t,_ as t$1}from"../_chunks/libs/remeda.mjs";import{LikeC4Model}from"@likec4/core/model";import{useEffect,useState}from"react";function createRpc(e){return createBirpc({},{post:n=>e.send(`likec4:rpc`,n),on:n=>e.on(`likec4:rpc`,n),onGeneralError(e,n){console.error(`RPC error in ${n}`,{error:e})},onFunctionError:(e,n)=>{console.error(`RPC error in ${n}`,{error:e})}})}const createHooksForModel=e=>{let n=computed(e,e=>LikeC4Model.create(e));function i(n){let r=e.get();if(t(r,n))return;let i={...n,views:t$1(n.views,e=>{let n=r.views[e.id];return t(n,e)?n:e})};e.set(i)}let a=computed(e,e=>Object.values(e.views));function o(){return useStore(n)}function s(){return useStore(a)}function c(n){let[r,i]=useState(e.value?.views[n]??null);return useEffect(()=>e.subscribe(e=>{i(e.views[n]??null)}),[n]),r}return{updateModel:i,$likec4model:n,useLikeC4Model:o,useLikeC4Views:s,useLikeC4View:c}};export{atom,batched,computed,createHooksForModel,createRpc,map,useStore};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
3
|
"description": "Toolchain for your architecture diagrams",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.49.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://likec4.dev",
|
|
7
7
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"graph"
|
|
21
21
|
],
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=22.
|
|
23
|
+
"node": ">=22.22.0"
|
|
24
24
|
},
|
|
25
25
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
26
26
|
"type": "module",
|
|
@@ -60,12 +60,9 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"./react": {
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
"import": "./react/index.js",
|
|
67
|
-
"default": "./react/index.js"
|
|
68
|
-
}
|
|
63
|
+
"types": "./react/index.d.mts",
|
|
64
|
+
"import": "./react/index.mjs",
|
|
65
|
+
"default": "./react/index.mjs"
|
|
69
66
|
},
|
|
70
67
|
"./vite-plugin-modules": {
|
|
71
68
|
"types": "./vite-plugin-modules.d.ts"
|
|
@@ -92,25 +89,41 @@
|
|
|
92
89
|
"registry": "https://registry.npmjs.org",
|
|
93
90
|
"access": "public"
|
|
94
91
|
},
|
|
92
|
+
"imports": {
|
|
93
|
+
"#vite/aliases": {
|
|
94
|
+
"production": "./src/vite/aliases.prod.ts",
|
|
95
|
+
"sources": "./src/vite/aliases.ts"
|
|
96
|
+
},
|
|
97
|
+
"#vite/config-app": {
|
|
98
|
+
"production": "./src/vite/config-app.prod.ts",
|
|
99
|
+
"sources": "./src/vite/config-app.ts"
|
|
100
|
+
},
|
|
101
|
+
"#vite/config-react": {
|
|
102
|
+
"production": "./src/vite/config-react.prod.ts",
|
|
103
|
+
"sources": "./src/vite/config-react.ts"
|
|
104
|
+
},
|
|
105
|
+
"#vite/config-webcomponent": {
|
|
106
|
+
"production": "./src/vite/config-webcomponent.prod.ts",
|
|
107
|
+
"sources": "./src/vite/config-webcomponent.ts"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
95
110
|
"dependencies": {
|
|
96
|
-
"@hpcc-js/wasm-graphviz": "1.
|
|
97
|
-
"@vitejs/plugin-react": "^5.1.
|
|
111
|
+
"@hpcc-js/wasm-graphviz": "1.21.0",
|
|
112
|
+
"@vitejs/plugin-react": "^5.1.3",
|
|
98
113
|
"boxen": "^8.0.1",
|
|
99
114
|
"bundle-require": "^5.1.0",
|
|
100
|
-
"esbuild": "0.27.
|
|
115
|
+
"esbuild": "0.27.3",
|
|
101
116
|
"fdir": "6.4.0",
|
|
102
117
|
"chokidar": "^5.0.0",
|
|
103
118
|
"playwright": "1.56.1",
|
|
104
|
-
"rollup": "^4.
|
|
119
|
+
"rollup": "^4.57.1",
|
|
105
120
|
"std-env": "^3.10.0",
|
|
106
121
|
"type-fest": "^4.41.0",
|
|
107
122
|
"vite-plugin-singlefile": "^2.3.0",
|
|
108
123
|
"vite": "^7.3.1",
|
|
109
|
-
"@xyflow/react": "12.10.0",
|
|
110
|
-
"@xyflow/system": "0.0.74",
|
|
111
124
|
"yargs": "17.7.2",
|
|
112
125
|
"nano-spawn": "^2.0.0",
|
|
113
|
-
"@likec4/core": "1.
|
|
126
|
+
"@likec4/core": "1.49.0",
|
|
114
127
|
"@likec4/icons": "1.46.4"
|
|
115
128
|
},
|
|
116
129
|
"peerDependencies": {
|
|
@@ -121,27 +134,29 @@
|
|
|
121
134
|
"langium": "3.5.0",
|
|
122
135
|
"@dagrejs/dagre": "1.1.8",
|
|
123
136
|
"@fontsource-variable/ibm-plex-sans": "^5.2.8",
|
|
124
|
-
"@mantine/core": "8.3.
|
|
125
|
-
"@mantine/hooks": "8.3.
|
|
137
|
+
"@mantine/core": "8.3.14",
|
|
138
|
+
"@mantine/hooks": "8.3.14",
|
|
126
139
|
"@pandacss/dev": "^1.8.1",
|
|
127
140
|
"@react-hookz/web": "^25.2.0",
|
|
128
|
-
"@tabler/icons-react": "3.36.
|
|
141
|
+
"@tabler/icons-react": "3.36.1",
|
|
129
142
|
"@tanstack/react-router": "^1.114.13",
|
|
130
143
|
"@tanstack/router-cli": "^1.114.13",
|
|
131
144
|
"@tanstack/router-vite-plugin": "^1.114.13",
|
|
132
|
-
"@types/node": "~22.19.
|
|
145
|
+
"@types/node": "~22.19.10",
|
|
133
146
|
"@types/picomatch": "^4.0.2",
|
|
134
|
-
"@types/react": "19.2.
|
|
147
|
+
"@types/react": "19.2.13",
|
|
135
148
|
"@types/react-dom": "19.2.3",
|
|
136
149
|
"@types/semver": "^7.7.1",
|
|
137
150
|
"@types/yargs": "^17.0.33",
|
|
138
151
|
"@xstate/react": "6.0.0",
|
|
139
152
|
"@xstate/store": "3.14.0",
|
|
140
|
-
"
|
|
153
|
+
"@xyflow/react": "12.10.0",
|
|
154
|
+
"@xyflow/system": "0.0.74",
|
|
155
|
+
"autoprefixer": "^10.4.24",
|
|
141
156
|
"picomatch": "^4.0.3",
|
|
142
157
|
"birpc": "^4.0.0",
|
|
143
158
|
"clsx": "^2.1.1",
|
|
144
|
-
"conf": "^15.0
|
|
159
|
+
"conf": "^15.1.0",
|
|
145
160
|
"defu": "^6.1.4",
|
|
146
161
|
"esbuild-node-externals": "1.20.1",
|
|
147
162
|
"esm-env": "^1.2.2",
|
|
@@ -150,12 +165,12 @@
|
|
|
150
165
|
"html-to-image": "1.11.11",
|
|
151
166
|
"is-inside-container": "^1.0.0",
|
|
152
167
|
"json5": "^2.2.3",
|
|
153
|
-
"ky": "^1.14.
|
|
168
|
+
"ky": "^1.14.3",
|
|
154
169
|
"merge-error-cause": "^5.0.2",
|
|
155
170
|
"mkdirp": "^3.0.1",
|
|
156
|
-
"motion": "^12.
|
|
171
|
+
"motion": "^12.33.0",
|
|
157
172
|
"npm-run-all2": "^8.0.4",
|
|
158
|
-
"p-limit": "7.
|
|
173
|
+
"p-limit": "7.3.0",
|
|
159
174
|
"nanostores": "1.1.0",
|
|
160
175
|
"@nanostores/react": "1.0.0",
|
|
161
176
|
"package-manager-detector": "1.6.0",
|
|
@@ -167,15 +182,15 @@
|
|
|
167
182
|
"react-error-boundary": "^6.1.0",
|
|
168
183
|
"react-resizable-panels": "^4.5.2",
|
|
169
184
|
"react-shadow": "^20.6.0",
|
|
170
|
-
"remeda": "^2.
|
|
171
|
-
"semver": "^7.7.
|
|
185
|
+
"remeda": "^2.33.5",
|
|
186
|
+
"semver": "^7.7.4",
|
|
172
187
|
"strip-indent": "^4.1.1",
|
|
173
188
|
"tinyrainbow": "^2.0.0",
|
|
174
189
|
"tsx": "4.21.0",
|
|
175
|
-
"turbo": "2.
|
|
190
|
+
"turbo": "2.8.3",
|
|
176
191
|
"typescript": "5.9.3",
|
|
177
192
|
"ufo": "1.6.3",
|
|
178
|
-
"obuild": "^0.4.
|
|
193
|
+
"obuild": "^0.4.27",
|
|
179
194
|
"vite-plugin-dts": "^4.5.4",
|
|
180
195
|
"vite-plugin-inspect": "^11.3.3",
|
|
181
196
|
"vitest": "4.0.18",
|
|
@@ -186,29 +201,33 @@
|
|
|
186
201
|
"which": "^5.0.0",
|
|
187
202
|
"wireit": "0.14.12",
|
|
188
203
|
"zod": "^3.25.76",
|
|
204
|
+
"zx": "8.8.5",
|
|
189
205
|
"xstate": "5.24.0",
|
|
190
|
-
"@likec4/log": "1.
|
|
191
|
-
"@likec4/
|
|
206
|
+
"@likec4/log": "1.49.0",
|
|
207
|
+
"@likec4/config": "1.49.0",
|
|
208
|
+
"@likec4/language-server": "1.49.0",
|
|
209
|
+
"@likec4/language-services": "1.49.0",
|
|
192
210
|
"@likec4/devops": "1.42.0",
|
|
193
|
-
"@likec4/diagram": "1.
|
|
194
|
-
"@likec4/
|
|
195
|
-
"@likec4/
|
|
196
|
-
"@likec4/generators": "1.
|
|
197
|
-
"@likec4/style-preset": "1.
|
|
198
|
-
"@likec4/
|
|
199
|
-
"@likec4/
|
|
211
|
+
"@likec4/diagram": "1.49.0",
|
|
212
|
+
"@likec4/layouts": "1.49.0",
|
|
213
|
+
"@likec4/vite-plugin": "1.49.0",
|
|
214
|
+
"@likec4/generators": "1.49.0",
|
|
215
|
+
"@likec4/style-preset": "1.49.0",
|
|
216
|
+
"@likec4/react": "1.49.0",
|
|
217
|
+
"@likec4/tsconfig": "1.49.0",
|
|
218
|
+
"@likec4/styles": "1.49.0"
|
|
200
219
|
},
|
|
201
220
|
"scripts": {
|
|
202
221
|
"typecheck": "tsc --build --verbose",
|
|
203
222
|
"build-cli": "obuild",
|
|
204
|
-
"build-app": "tsx scripts/bundle-app.ts",
|
|
205
|
-
"build-react": "tsx scripts/bundle-react.ts",
|
|
223
|
+
"build-app": "tsx --conditions=sources scripts/bundle-app.ts",
|
|
224
|
+
"build-react": "tsx --conditions=sources scripts/bundle-react.ts",
|
|
206
225
|
"build": "echo \"use pnpm turbo run build\" || true",
|
|
207
226
|
"generate:app": "tsr generate",
|
|
208
227
|
"pack": "pnpm pack",
|
|
209
228
|
"lint": "run -T eslint src/ --fix",
|
|
210
229
|
"lint:package": "pnpx publint ./package.tgz",
|
|
211
|
-
"clean": "pnpm rimraf --glob lib dist app/dist dev/.export dev/dist node_modules/.vite react
|
|
230
|
+
"clean": "pnpm rimraf --glob lib dist app/dist dev/.export dev/dist node_modules/.vite react/* icons",
|
|
212
231
|
"start": "tsx --conditions=sources src/cli/index.ts",
|
|
213
232
|
"dev": "pnpm cli:serve dev",
|
|
214
233
|
"dev:docs": "pnpm cli:serve ../../apps/docs/src",
|