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.
Files changed (113) hide show
  1. package/README.md +11 -1
  2. package/__app__/src/likec4.js +5595 -4127
  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 +1221 -16
  6. package/__app__/src/style.css +1 -1
  7. package/__app__/src/vendors.js +3507 -894
  8. package/__app__/src/webcomponent.js +1 -1
  9. package/config/schema.json +155 -143
  10. package/dist/THIRD-PARTY-LICENSES.md +1739 -0
  11. package/dist/_chunks/GraphvizBinaryAdapter.mjs +72 -0
  12. package/dist/_chunks/filenames.mjs +14 -0
  13. package/dist/_chunks/index.d.mts +224 -129
  14. package/dist/_chunks/index2.d.mts +2033 -1908
  15. package/dist/_chunks/libs/@chevrotain/gast.mjs +1 -3969
  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 +14 -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.mjs +1 -30
  27. package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -100
  28. package/dist/_chunks/libs/ajv.mjs +1 -777
  29. package/dist/_chunks/libs/atomically.mjs +1 -362
  30. package/dist/_chunks/libs/birpc.mjs +1 -201
  31. package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -850
  32. package/dist/_chunks/libs/chevrotain.mjs +55 -6229
  33. package/dist/_chunks/libs/conf.mjs +1 -2258
  34. package/dist/_chunks/libs/defu.mjs +1 -42
  35. package/dist/_chunks/libs/esm-env.mjs +1 -5
  36. package/dist/_chunks/libs/eventemitter3.mjs +1 -243
  37. package/dist/_chunks/libs/fast-equals.mjs +1 -446
  38. package/dist/_chunks/libs/find-up-simple.mjs +1 -24
  39. package/dist/_chunks/libs/get-port.mjs +1 -107
  40. package/dist/_chunks/libs/is-docker.mjs +1 -26
  41. package/dist/_chunks/libs/is-error-instance.mjs +1 -26
  42. package/dist/_chunks/libs/is-inside-container.mjs +1 -20
  43. package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
  44. package/dist/_chunks/libs/isexe.mjs +1 -127
  45. package/dist/_chunks/libs/json5.mjs +14 -959
  46. package/dist/_chunks/libs/khroma.mjs +1 -605
  47. package/dist/_chunks/libs/ky.mjs +2 -807
  48. package/dist/_chunks/libs/langium.d.mts +2880 -2844
  49. package/dist/_chunks/libs/langium.mjs +32 -20351
  50. package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
  51. package/dist/_chunks/libs/nanostores.mjs +1 -198
  52. package/dist/_chunks/libs/p-limit.mjs +1 -120
  53. package/dist/_chunks/libs/p-queue.mjs +1 -449
  54. package/dist/_chunks/libs/package-manager-detector.mjs +1 -559
  55. package/dist/_chunks/libs/package-up.mjs +1 -10
  56. package/dist/_chunks/libs/parse-ms.mjs +1 -36
  57. package/dist/_chunks/libs/pathe.mjs +1 -0
  58. package/dist/_chunks/libs/picomatch.mjs +1 -1673
  59. package/dist/_chunks/libs/pretty-ms.mjs +1 -80
  60. package/dist/_chunks/libs/remeda.mjs +1 -690
  61. package/dist/_chunks/libs/safe-stringify.mjs +1 -21
  62. package/dist/_chunks/libs/strip-indent.mjs +1 -15
  63. package/dist/_chunks/libs/tinyrainbow.mjs +1 -88
  64. package/dist/_chunks/libs/ts-graphviz.mjs +4 -725
  65. package/dist/_chunks/libs/ufo.mjs +1 -240
  66. package/dist/_chunks/libs/which.mjs +1 -84
  67. package/dist/_chunks/libs/word-wrap.mjs +12 -43
  68. package/dist/_chunks/node.mjs +481 -0
  69. package/dist/_chunks/plugin.mjs +98 -772
  70. package/dist/_chunks/rolldown-runtime.mjs +1 -48
  71. package/dist/_chunks/sequence-view.mjs +1 -575
  72. package/dist/cli/index.mjs +127 -1846
  73. package/dist/config/index.d.mts +2 -2
  74. package/dist/config/index.mjs +1 -6
  75. package/dist/index.d.mts +148 -7
  76. package/dist/index.mjs +1 -21
  77. package/dist/model/builder.mjs +1 -3
  78. package/dist/model/index.d.mts +57 -3
  79. package/dist/model/index.mjs +1 -5
  80. package/dist/vite-plugin/index.d.mts +4 -3
  81. package/dist/vite-plugin/index.mjs +1 -22
  82. package/dist/vite-plugin/internal.d.mts +5 -5
  83. package/dist/vite-plugin/internal.mjs +1 -68
  84. package/package.json +60 -41
  85. package/react/{index.d.ts → index.d.mts} +112 -70
  86. package/react/{index.js → index.mjs} +21361 -22064
  87. package/react/package.json +2 -5
  88. package/vite-plugin-modules.d.ts +5 -5
  89. package/dist/_chunks/LikeC4.d.mts +0 -121
  90. package/dist/_chunks/LikeC4.mjs +0 -202
  91. package/dist/_chunks/config-app.prod.d.mts +0 -18
  92. package/dist/_chunks/config-app.prod.mjs +0 -188
  93. package/dist/_chunks/config-webcomponent.prod.mjs +0 -71
  94. package/dist/_chunks/define-config.mjs +0 -409
  95. package/dist/_chunks/index3.d.mts +0 -60
  96. package/dist/_chunks/index4.d.mts +0 -1
  97. package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +0 -10
  98. package/dist/_chunks/libs/hono.mjs +0 -1829
  99. package/dist/_chunks/libs/nanoid.mjs +0 -29
  100. package/dist/_chunks/model.mjs +0 -12
  101. package/dist/_chunks/module.d.mts +0 -71
  102. package/dist/_chunks/module.mjs +0 -18657
  103. package/dist/_chunks/vite-build.mjs +0 -69
  104. package/dist/_chunks/vite-dev.mjs +0 -79
  105. package/dist/_chunks/vite-preview.mjs +0 -27
  106. package/dist/language/module.d.mts +0 -5
  107. package/dist/language/module.mjs +0 -20
  108. package/dist/vite/vite-build.d.mts +0 -26
  109. package/dist/vite/vite-build.mjs +0 -27
  110. package/dist/vite/vite-dev.d.mts +0 -34
  111. package/dist/vite/vite-dev.mjs +0 -29
  112. package/dist/vite/vite-preview.d.mts +0 -20
  113. package/dist/vite/vite-preview.mjs +0 -26
@@ -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 serializeValue(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]=serializeValue(s,n,r,i===``?o:`${i}.${o}`);return n.delete(t),a}function safeStringify(t,{indentation:n,trace:r}={}){let i=serializeValue(t,new WeakMap,r,``);return JSON.stringify(i,void 0,n)}export{safeStringify as 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 stripIndent(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 dedent(t){return stripIndent(t.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g,``))}export{stripIndent as n,dedent as 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}from"tty";var h=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 a(e){return String(e)}a.open=``,a.close=``;function C(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 p(e=!1){let i=C(e),o=(e,t,n,r)=>{let i=``,o=0;do i+=e.substring(o,r)+n,o=r+t.length,r=e.indexOf(t,o);while(~r);return i+e.substring(o)},s=(e,t,n=e)=>{let r=r=>{let i=String(r),s=i.indexOf(t,e.length);return~s?e+o(i,t,n,s)+t:e+i+t};return r.open=e,r.close=t,r},c={isColorSupported:i},l=e=>`\x1B[${e}m`;for(let[e,r]of h)c[e]=i?s(l(r[0]),l(r[1]),r[2]):a;return c}var u=p(process.env.FORCE_TTY!==void 0||isatty(1));export{u as t};