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.
Files changed (118) hide show
  1. package/README.md +11 -1
  2. package/__app__/src/likec4.js +5941 -4496
  3. package/__app__/src/routes/index.js +3 -153
  4. package/__app__/src/routes/projects.js +21 -1087
  5. package/__app__/src/routes/single.js +1228 -16
  6. package/__app__/src/style.css +1 -1
  7. package/__app__/src/vendors.js +4649 -1897
  8. package/__app__/src/webcomponent.js +1 -1
  9. package/config/schema.json +169 -141
  10. package/dist/THIRD-PARTY-LICENSES.md +1769 -0
  11. package/dist/_chunks/LikeC4.mjs +1154 -202
  12. package/dist/_chunks/binary.mjs +72 -0
  13. package/dist/_chunks/index.d.mts +234 -140
  14. package/dist/_chunks/index2.d.mts +2043 -1828
  15. package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +30 -0
  16. package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +9 -785
  17. package/dist/_chunks/libs/@chevrotain/utils.mjs +1 -37
  18. package/dist/_chunks/libs/@hono/mcp.mjs +34 -0
  19. package/dist/_chunks/libs/@hono/node-server.mjs +1 -436
  20. package/dist/_chunks/libs/@logtape/logtape.d.mts +741 -0
  21. package/dist/_chunks/libs/@logtape/logtape.mjs +6 -1354
  22. package/dist/_chunks/libs/@lume/kiwi.mjs +1 -1355
  23. package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +114 -14
  24. package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +12 -25105
  25. package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -1503
  26. package/dist/_chunks/libs/@nanostores/react.d.mts +61 -1
  27. package/dist/_chunks/libs/@nanostores/react.mjs +1 -30
  28. package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +1 -10
  29. package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -100
  30. package/dist/_chunks/libs/ajv.mjs +1 -777
  31. package/dist/_chunks/libs/atomically.mjs +1 -362
  32. package/dist/_chunks/libs/birpc.mjs +1 -201
  33. package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -850
  34. package/dist/_chunks/libs/chevrotain.mjs +55 -6229
  35. package/dist/_chunks/libs/conf.mjs +1 -2258
  36. package/dist/_chunks/libs/defu.mjs +1 -42
  37. package/dist/_chunks/libs/esm-env.mjs +1 -5
  38. package/dist/_chunks/libs/eventemitter3.mjs +1 -243
  39. package/dist/_chunks/libs/fast-equals.mjs +1 -446
  40. package/dist/_chunks/libs/find-up-simple.mjs +1 -24
  41. package/dist/_chunks/libs/get-port.mjs +1 -107
  42. package/dist/_chunks/libs/is-docker.mjs +1 -26
  43. package/dist/_chunks/libs/is-error-instance.mjs +1 -26
  44. package/dist/_chunks/libs/is-inside-container.mjs +1 -20
  45. package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
  46. package/dist/_chunks/libs/isexe.mjs +1 -127
  47. package/dist/_chunks/libs/json5.mjs +14 -959
  48. package/dist/_chunks/libs/khroma.mjs +1 -605
  49. package/dist/_chunks/libs/ky.mjs +2 -807
  50. package/dist/_chunks/libs/langium.d.mts +2913 -2876
  51. package/dist/_chunks/libs/langium.mjs +33 -20351
  52. package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
  53. package/dist/_chunks/libs/p-limit.mjs +1 -120
  54. package/dist/_chunks/libs/p-queue.mjs +1 -449
  55. package/dist/_chunks/libs/package-manager-detector.mjs +1 -559
  56. package/dist/_chunks/libs/package-up.mjs +1 -10
  57. package/dist/_chunks/libs/pako.mjs +1 -0
  58. package/dist/_chunks/libs/parse-ms.mjs +1 -36
  59. package/dist/_chunks/libs/pathe.mjs +1 -0
  60. package/dist/_chunks/libs/picomatch.mjs +1 -1673
  61. package/dist/_chunks/libs/pretty-ms.mjs +1 -80
  62. package/dist/_chunks/libs/remeda.mjs +2 -690
  63. package/dist/_chunks/libs/safe-stringify.mjs +1 -21
  64. package/dist/_chunks/libs/strip-indent.mjs +1 -15
  65. package/dist/_chunks/libs/tinyrainbow.mjs +1 -88
  66. package/dist/_chunks/libs/ts-graphviz.mjs +4 -725
  67. package/dist/_chunks/libs/ufo.mjs +1 -240
  68. package/dist/_chunks/libs/which.mjs +1 -84
  69. package/dist/_chunks/libs/word-wrap.mjs +12 -43
  70. package/dist/_chunks/rolldown-runtime.mjs +1 -48
  71. package/dist/_chunks/sequence.mjs +1 -0
  72. package/dist/_chunks/src.mjs +15 -0
  73. package/dist/_chunks/src2.mjs +499 -0
  74. package/dist/cli/index.mjs +77 -1952
  75. package/dist/config/index.d.mts +2 -2
  76. package/dist/config/index.mjs +1 -6
  77. package/dist/index.d.mts +150 -7
  78. package/dist/index.mjs +1 -21
  79. package/dist/model/builder.mjs +1 -3
  80. package/dist/model/index.d.mts +57 -3
  81. package/dist/model/index.mjs +1 -5
  82. package/dist/vite-plugin/index.d.mts +7 -3
  83. package/dist/vite-plugin/index.mjs +1 -22
  84. package/dist/vite-plugin/internal.d.mts +6 -7
  85. package/dist/vite-plugin/internal.mjs +1 -68
  86. package/package.json +64 -45
  87. package/react/{index.d.ts → index.d.mts} +114 -72
  88. package/react/{index.js → index.mjs} +21320 -22041
  89. package/react/package.json +2 -5
  90. package/vite-plugin-modules.d.ts +10 -5
  91. package/dist/_chunks/LikeC4.d.mts +0 -121
  92. package/dist/_chunks/config-app.prod.d.mts +0 -18
  93. package/dist/_chunks/config-app.prod.mjs +0 -188
  94. package/dist/_chunks/config-webcomponent.prod.mjs +0 -71
  95. package/dist/_chunks/define-config.mjs +0 -409
  96. package/dist/_chunks/index3.d.mts +0 -60
  97. package/dist/_chunks/libs/@chevrotain/gast.mjs +0 -3969
  98. package/dist/_chunks/libs/hono.mjs +0 -1829
  99. package/dist/_chunks/libs/nanoid.mjs +0 -29
  100. package/dist/_chunks/libs/nanostores.d.mts +0 -63
  101. package/dist/_chunks/libs/nanostores.mjs +0 -198
  102. package/dist/_chunks/model.mjs +0 -12
  103. package/dist/_chunks/module.d.mts +0 -71
  104. package/dist/_chunks/module.mjs +0 -18657
  105. package/dist/_chunks/plugin.mjs +0 -996
  106. package/dist/_chunks/sequence-view.mjs +0 -575
  107. package/dist/_chunks/vite-build.mjs +0 -69
  108. package/dist/_chunks/vite-dev.mjs +0 -79
  109. package/dist/_chunks/vite-preview.mjs +0 -27
  110. package/dist/language/module.d.mts +0 -5
  111. package/dist/language/module.mjs +0 -20
  112. package/dist/vite/vite-build.d.mts +0 -26
  113. package/dist/vite/vite-build.mjs +0 -27
  114. package/dist/vite/vite-dev.d.mts +0 -34
  115. package/dist/vite/vite-dev.mjs +0 -29
  116. package/dist/vite/vite-preview.d.mts +0 -20
  117. package/dist/vite/vite-preview.mjs +0 -26
  118. /package/dist/_chunks/{index4.d.mts → libs/@chevrotain/types.d.mts} +0 -0
@@ -1,21 +1 @@
1
- //#region ../../node_modules/.pnpm/safe-stringify@1.2.0/node_modules/safe-stringify/index.js
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
- //#region ../../node_modules/.pnpm/strip-indent@4.1.1/node_modules/strip-indent/index.js
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 { isatty } from "tty";
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};