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,127 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { statSync } from "fs";
|
|
3
|
-
import { stat } from "fs/promises";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/mjs/posix.js
|
|
6
|
-
/**
|
|
7
|
-
* This is the Posix implementation of isexe, which uses the file
|
|
8
|
-
* mode and uid/gid values.
|
|
9
|
-
*
|
|
10
|
-
* @module
|
|
11
|
-
*/
|
|
12
|
-
var posix_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
-
isexe: () => isexe$2,
|
|
14
|
-
sync: () => sync$2
|
|
15
|
-
});
|
|
16
|
-
var isexe$2, sync$2, checkStat$1, checkMode;
|
|
17
|
-
var init_posix = __esmMin((() => {
|
|
18
|
-
isexe$2 = async (path, options = {}) => {
|
|
19
|
-
const { ignoreErrors = false } = options;
|
|
20
|
-
try {
|
|
21
|
-
return checkStat$1(await stat(path), options);
|
|
22
|
-
} catch (e) {
|
|
23
|
-
const er = e;
|
|
24
|
-
if (ignoreErrors || er.code === "EACCES") return false;
|
|
25
|
-
throw er;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
sync$2 = (path, options = {}) => {
|
|
29
|
-
const { ignoreErrors = false } = options;
|
|
30
|
-
try {
|
|
31
|
-
return checkStat$1(statSync(path), options);
|
|
32
|
-
} catch (e) {
|
|
33
|
-
const er = e;
|
|
34
|
-
if (ignoreErrors || er.code === "EACCES") return false;
|
|
35
|
-
throw er;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
checkStat$1 = (stat, options) => stat.isFile() && checkMode(stat, options);
|
|
39
|
-
checkMode = (stat, options) => {
|
|
40
|
-
const myUid = options.uid ?? process.getuid?.();
|
|
41
|
-
const myGroups = options.groups ?? process.getgroups?.() ?? [];
|
|
42
|
-
const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
|
|
43
|
-
if (myUid === void 0 || myGid === void 0) throw new Error("cannot get uid or gid");
|
|
44
|
-
const groups = new Set([myGid, ...myGroups]);
|
|
45
|
-
const mod = stat.mode;
|
|
46
|
-
const uid = stat.uid;
|
|
47
|
-
const gid = stat.gid;
|
|
48
|
-
const u = parseInt("100", 8);
|
|
49
|
-
const g = parseInt("010", 8);
|
|
50
|
-
const o = parseInt("001", 8);
|
|
51
|
-
const ug = u | g;
|
|
52
|
-
return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);
|
|
53
|
-
};
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/mjs/win32.js
|
|
58
|
-
/**
|
|
59
|
-
* This is the Windows implementation of isexe, which uses the file
|
|
60
|
-
* extension and PATHEXT setting.
|
|
61
|
-
*
|
|
62
|
-
* @module
|
|
63
|
-
*/
|
|
64
|
-
var win32_exports = /* @__PURE__ */ __exportAll({
|
|
65
|
-
isexe: () => isexe$1,
|
|
66
|
-
sync: () => sync$1
|
|
67
|
-
});
|
|
68
|
-
var isexe$1, sync$1, checkPathExt, checkStat;
|
|
69
|
-
var init_win32 = __esmMin((() => {
|
|
70
|
-
isexe$1 = async (path, options = {}) => {
|
|
71
|
-
const { ignoreErrors = false } = options;
|
|
72
|
-
try {
|
|
73
|
-
return checkStat(await stat(path), path, options);
|
|
74
|
-
} catch (e) {
|
|
75
|
-
const er = e;
|
|
76
|
-
if (ignoreErrors || er.code === "EACCES") return false;
|
|
77
|
-
throw er;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
sync$1 = (path, options = {}) => {
|
|
81
|
-
const { ignoreErrors = false } = options;
|
|
82
|
-
try {
|
|
83
|
-
return checkStat(statSync(path), path, options);
|
|
84
|
-
} catch (e) {
|
|
85
|
-
const er = e;
|
|
86
|
-
if (ignoreErrors || er.code === "EACCES") return false;
|
|
87
|
-
throw er;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
checkPathExt = (path, options) => {
|
|
91
|
-
const { pathExt = process.env.PATHEXT || "" } = options;
|
|
92
|
-
const peSplit = pathExt.split(";");
|
|
93
|
-
if (peSplit.indexOf("") !== -1) return true;
|
|
94
|
-
for (let i = 0; i < peSplit.length; i++) {
|
|
95
|
-
const p = peSplit[i].toLowerCase();
|
|
96
|
-
const ext = path.substring(path.length - p.length).toLowerCase();
|
|
97
|
-
if (p && ext === p) return true;
|
|
98
|
-
}
|
|
99
|
-
return false;
|
|
100
|
-
};
|
|
101
|
-
checkStat = (stat, path, options) => stat.isFile() && checkPathExt(path, options);
|
|
102
|
-
}));
|
|
103
|
-
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/mjs/options.js
|
|
106
|
-
var init_options = __esmMin((() => {}));
|
|
107
|
-
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/mjs/index.js
|
|
110
|
-
var mjs_exports = /* @__PURE__ */ __exportAll({
|
|
111
|
-
isexe: () => isexe,
|
|
112
|
-
posix: () => posix_exports,
|
|
113
|
-
sync: () => sync,
|
|
114
|
-
win32: () => win32_exports
|
|
115
|
-
});
|
|
116
|
-
var impl, isexe, sync;
|
|
117
|
-
var init_mjs = __esmMin((() => {
|
|
118
|
-
init_posix();
|
|
119
|
-
init_win32();
|
|
120
|
-
init_options();
|
|
121
|
-
impl = (process.env._ISEXE_TEST_PLATFORM_ || process.platform) === "win32" ? win32_exports : posix_exports;
|
|
122
|
-
isexe = impl.isexe;
|
|
123
|
-
sync = impl.sync;
|
|
124
|
-
}));
|
|
125
|
-
|
|
126
|
-
//#endregion
|
|
127
|
-
export { mjs_exports as n, init_mjs as t };
|
|
1
|
+
import{n as e,r as t}from"../rolldown-runtime.mjs";import{statSync as n}from"fs";import{stat as r}from"fs/promises";var i=t({isexe:()=>a,sync:()=>o}),a,o,s,c,l=e((()=>{a=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return s(await r(e),t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},o=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return s(n(e),t)}catch(e){let t=e;if(r||t.code===`EACCES`)return!1;throw t}},s=(e,t)=>e.isFile()&&c(e,t),c=(e,t)=>{let n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??r[0];if(n===void 0||i===void 0)throw Error(`cannot get uid or gid`);let a=new Set([i,...r]),o=e.mode,s=e.uid,c=e.gid;return!!(o&1||o&8&&a.has(c)||o&64&&s===n||o&72&&n===0)}})),u=t({isexe:()=>d,sync:()=>f}),d,f,p,m,h=e((()=>{d=async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return m(await r(e),e,t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},f=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return m(n(e),e,t)}catch(e){let t=e;if(r||t.code===`EACCES`)return!1;throw t}},p=(e,t)=>{let{pathExt:n=process.env.PATHEXT||``}=t,r=n.split(`;`);if(r.indexOf(``)!==-1)return!0;for(let t=0;t<r.length;t++){let n=r[t].toLowerCase(),i=e.substring(e.length-n.length).toLowerCase();if(n&&i===n)return!0}return!1},m=(e,t,n)=>e.isFile()&&p(t,n)})),g=e((()=>{})),_=t({isexe:()=>y,posix:()=>i,sync:()=>b,win32:()=>u}),v,y,b,x=e((()=>{l(),h(),g(),v=(process.env._ISEXE_TEST_PLATFORM_||process.platform)===`win32`?u:i,y=v.isexe,b=v.sync}));export{_ as n,x as t};
|