likec4 1.48.0 → 1.50.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 +5941 -4496
- package/__app__/src/routes/index.js +3 -153
- package/__app__/src/routes/projects.js +21 -1087
- package/__app__/src/routes/single.js +1228 -16
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +4649 -1897
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +169 -141
- package/dist/THIRD-PARTY-LICENSES.md +1769 -0
- package/dist/_chunks/LikeC4.mjs +1154 -202
- package/dist/_chunks/binary.mjs +72 -0
- package/dist/_chunks/index.d.mts +234 -140
- package/dist/_chunks/index2.d.mts +2043 -1828
- package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +30 -0
- 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 +114 -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.d.mts +61 -1
- package/dist/_chunks/libs/@nanostores/react.mjs +1 -30
- package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +1 -10
- 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 +2913 -2876
- package/dist/_chunks/libs/langium.mjs +33 -20351
- package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
- 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/pako.mjs +1 -0
- 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 +2 -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/rolldown-runtime.mjs +1 -48
- package/dist/_chunks/sequence.mjs +1 -0
- package/dist/_chunks/src.mjs +15 -0
- package/dist/_chunks/src2.mjs +499 -0
- package/dist/cli/index.mjs +77 -1952
- package/dist/config/index.d.mts +2 -2
- package/dist/config/index.mjs +1 -6
- package/dist/index.d.mts +150 -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 +7 -3
- package/dist/vite-plugin/index.mjs +1 -22
- package/dist/vite-plugin/internal.d.mts +6 -7
- package/dist/vite-plugin/internal.mjs +1 -68
- package/package.json +64 -45
- package/react/{index.d.ts → index.d.mts} +114 -72
- package/react/{index.js → index.mjs} +21320 -22041
- package/react/package.json +2 -5
- package/vite-plugin-modules.d.ts +10 -5
- package/dist/_chunks/LikeC4.d.mts +0 -121
- 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/libs/@chevrotain/gast.mjs +0 -3969
- package/dist/_chunks/libs/hono.mjs +0 -1829
- package/dist/_chunks/libs/nanoid.mjs +0 -29
- package/dist/_chunks/libs/nanostores.d.mts +0 -63
- package/dist/_chunks/libs/nanostores.mjs +0 -198
- 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/plugin.mjs +0 -996
- package/dist/_chunks/sequence-view.mjs +0 -575
- 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/_chunks/{index4.d.mts → libs/@chevrotain/types.d.mts} +0 -0
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function safeStringifyReplacer(seen) {
|
|
3
|
-
const replacer = function(key, value) {
|
|
4
|
-
if (typeof value?.toJSON === "function") value = value.toJSON();
|
|
5
|
-
if (!(value !== null && typeof value === "object")) return value;
|
|
6
|
-
if (seen.has(value)) return "[Circular]";
|
|
7
|
-
seen.add(value);
|
|
8
|
-
const newValue = Array.isArray(value) ? [] : {};
|
|
9
|
-
for (const [key2, value2] of Object.entries(value)) newValue[key2] = replacer(key2, value2);
|
|
10
|
-
seen.delete(value);
|
|
11
|
-
return newValue;
|
|
12
|
-
};
|
|
13
|
-
return replacer;
|
|
14
|
-
}
|
|
15
|
-
function safeStringify(object, { indentation } = {}) {
|
|
16
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
17
|
-
return JSON.stringify(object, safeStringifyReplacer(seen), indentation);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { safeStringify as t };
|
|
1
|
+
function e(t,n,r,i){if(typeof t?.toJSON==`function`&&(t=t.toJSON()),!(typeof t==`object`&&t))return t;if(n.has(t)){if(!r)return`[Circular]`;let e=n.get(t);return`[Circular ${e===``?`*`:`*${e}`}]`}n.set(t,i);let a=Array.isArray(t)?[]:{};for(let[o,s]of Object.entries(t))a[o]=e(s,n,r,i===``?o:`${i}.${o}`);return n.delete(t),a}function t(t,{indentation:n,trace:r}={}){let i=e(t,new WeakMap,r,``);return JSON.stringify(i,void 0,n)}export{t};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function stripIndent(string) {
|
|
3
|
-
const match = string.match(/^[ \t]*(?=\S)/gm);
|
|
4
|
-
if (!match) return string;
|
|
5
|
-
let minIndent = Number.POSITIVE_INFINITY;
|
|
6
|
-
for (const indent of match) minIndent = Math.min(minIndent, indent.length);
|
|
7
|
-
if (minIndent === 0 || minIndent === Number.POSITIVE_INFINITY) return string;
|
|
8
|
-
return string.replace(new RegExp(`^[ \\t]{${minIndent}}`, "gm"), "");
|
|
9
|
-
}
|
|
10
|
-
function dedent(string) {
|
|
11
|
-
return stripIndent(string.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g, ""));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { stripIndent as n, dedent as t };
|
|
1
|
+
function e(e){let t=e.match(/^[ \t]*(?=\S)/gm);if(!t)return e;let n=1/0;for(let e of t)n=Math.min(n,e.length);return n===0||n===1/0?e:e.replace(RegExp(`^[ \\t]{${n}}`,`gm`),``)}function t(t){return e(t.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g,``))}export{e as n,t};
|
|
@@ -1,88 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
4
|
-
var h = Object.entries({
|
|
5
|
-
reset: [0, 0],
|
|
6
|
-
bold: [
|
|
7
|
-
1,
|
|
8
|
-
22,
|
|
9
|
-
"\x1B[22m\x1B[1m"
|
|
10
|
-
],
|
|
11
|
-
dim: [
|
|
12
|
-
2,
|
|
13
|
-
22,
|
|
14
|
-
"\x1B[22m\x1B[2m"
|
|
15
|
-
],
|
|
16
|
-
italic: [3, 23],
|
|
17
|
-
underline: [4, 24],
|
|
18
|
-
inverse: [7, 27],
|
|
19
|
-
hidden: [8, 28],
|
|
20
|
-
strikethrough: [9, 29],
|
|
21
|
-
black: [30, 39],
|
|
22
|
-
red: [31, 39],
|
|
23
|
-
green: [32, 39],
|
|
24
|
-
yellow: [33, 39],
|
|
25
|
-
blue: [34, 39],
|
|
26
|
-
magenta: [35, 39],
|
|
27
|
-
cyan: [36, 39],
|
|
28
|
-
white: [37, 39],
|
|
29
|
-
gray: [90, 39],
|
|
30
|
-
bgBlack: [40, 49],
|
|
31
|
-
bgRed: [41, 49],
|
|
32
|
-
bgGreen: [42, 49],
|
|
33
|
-
bgYellow: [43, 49],
|
|
34
|
-
bgBlue: [44, 49],
|
|
35
|
-
bgMagenta: [45, 49],
|
|
36
|
-
bgCyan: [46, 49],
|
|
37
|
-
bgWhite: [47, 49],
|
|
38
|
-
blackBright: [90, 39],
|
|
39
|
-
redBright: [91, 39],
|
|
40
|
-
greenBright: [92, 39],
|
|
41
|
-
yellowBright: [93, 39],
|
|
42
|
-
blueBright: [94, 39],
|
|
43
|
-
magentaBright: [95, 39],
|
|
44
|
-
cyanBright: [96, 39],
|
|
45
|
-
whiteBright: [97, 39],
|
|
46
|
-
bgBlackBright: [100, 49],
|
|
47
|
-
bgRedBright: [101, 49],
|
|
48
|
-
bgGreenBright: [102, 49],
|
|
49
|
-
bgYellowBright: [103, 49],
|
|
50
|
-
bgBlueBright: [104, 49],
|
|
51
|
-
bgMagentaBright: [105, 49],
|
|
52
|
-
bgCyanBright: [106, 49],
|
|
53
|
-
bgWhiteBright: [107, 49]
|
|
54
|
-
});
|
|
55
|
-
function a(n) {
|
|
56
|
-
return String(n);
|
|
57
|
-
}
|
|
58
|
-
a.open = "";
|
|
59
|
-
a.close = "";
|
|
60
|
-
function C(n = !1) {
|
|
61
|
-
let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];
|
|
62
|
-
return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome;
|
|
63
|
-
}
|
|
64
|
-
function p(n = !1) {
|
|
65
|
-
let e = C(n), i = (r, t, c, o) => {
|
|
66
|
-
let l = "", s = 0;
|
|
67
|
-
do
|
|
68
|
-
l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
|
|
69
|
-
while (~o);
|
|
70
|
-
return l + r.substring(s);
|
|
71
|
-
}, g = (r, t, c = r) => {
|
|
72
|
-
let o = (l) => {
|
|
73
|
-
let s = String(l), b = s.indexOf(t, r.length);
|
|
74
|
-
return ~b ? r + i(s, t, c, b) + t : r + s + t;
|
|
75
|
-
};
|
|
76
|
-
return o.open = r, o.close = t, o;
|
|
77
|
-
}, u = { isColorSupported: e }, d = (r) => `\x1B[${r}m`;
|
|
78
|
-
for (let [r, t] of h) u[r] = e ? g(d(t[0]), d(t[1]), t[2]) : a;
|
|
79
|
-
return u;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js
|
|
84
|
-
var r = process.env.FORCE_TTY !== void 0 || isatty(1);
|
|
85
|
-
var u = p(r);
|
|
86
|
-
|
|
87
|
-
//#endregion
|
|
88
|
-
export { u as t };
|
|
1
|
+
import{isatty as e}from"tty";var t=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function n(e){return String(e)}n.open=``,n.close=``;function r(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function i(e=!1){let i=r(e),a=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},o=(e,t,n=e)=>{let r=r=>{let i=String(r),o=i.indexOf(t,e.length);return~o?e+a(i,t,n,o)+t:e+i+t};return r.open=e,r.close=t,r},s={isColorSupported:i},c=e=>`\x1B[${e}m`;for(let[e,r]of t)s[e]=i?o(c(r[0]),c(r[1]),r[2]):n;return s}var a=i(process.env.FORCE_TTY!==void 0||e(1));export{a as t};
|