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,29 +0,0 @@
|
|
|
1
|
-
import { webcrypto } from "node:crypto";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.6/node_modules/nanoid/url-alphabet/index.js
|
|
4
|
-
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.6/node_modules/nanoid/index.js
|
|
8
|
-
const POOL_SIZE_MULTIPLIER = 128;
|
|
9
|
-
let pool, poolOffset;
|
|
10
|
-
function fillPool(bytes) {
|
|
11
|
-
if (!pool || pool.length < bytes) {
|
|
12
|
-
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
13
|
-
webcrypto.getRandomValues(pool);
|
|
14
|
-
poolOffset = 0;
|
|
15
|
-
} else if (poolOffset + bytes > pool.length) {
|
|
16
|
-
webcrypto.getRandomValues(pool);
|
|
17
|
-
poolOffset = 0;
|
|
18
|
-
}
|
|
19
|
-
poolOffset += bytes;
|
|
20
|
-
}
|
|
21
|
-
function nanoid(size = 21) {
|
|
22
|
-
fillPool(size |= 0);
|
|
23
|
-
let id = "";
|
|
24
|
-
for (let i = poolOffset - size; i < poolOffset; i++) id += urlAlphabet[pool[i] & 63];
|
|
25
|
-
return id;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { nanoid as t };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { i as StoreValue, n as AnyStore, r as Store, s as ReadableAtom } from "./@nanostores/react.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/task/index.d.ts
|
|
4
|
-
interface Task<Value> extends Promise<Value> {
|
|
5
|
-
t: true;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.d.ts
|
|
9
|
-
type StoreValues<Stores extends AnyStore[]> = { [Index in keyof Stores]: StoreValue<Stores[Index]> };
|
|
10
|
-
interface Computed {
|
|
11
|
-
<Value, OriginStore extends Store>(stores: OriginStore, cb: (value: StoreValue<OriginStore>) => Task<Value>): ReadableAtom<undefined | Value>;
|
|
12
|
-
<Value, OriginStores extends AnyStore[]>(stores: [...OriginStores], cb: (...values: StoreValues<OriginStores>) => Task<Value>): ReadableAtom<undefined | Value>;
|
|
13
|
-
<Value, OriginStore extends Store>(stores: OriginStore, cb: (value: StoreValue<OriginStore>) => Value): ReadableAtom<Value>;
|
|
14
|
-
/**
|
|
15
|
-
* Create derived store, which use generates value from another stores.
|
|
16
|
-
*
|
|
17
|
-
* ```js
|
|
18
|
-
* import { computed } from 'nanostores'
|
|
19
|
-
*
|
|
20
|
-
* import { $users } from './users.js'
|
|
21
|
-
*
|
|
22
|
-
* export const $admins = computed($users, users => {
|
|
23
|
-
* return users.filter(user => user.isAdmin)
|
|
24
|
-
* })
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* An async function can be evaluated by using {@link task}.
|
|
28
|
-
*
|
|
29
|
-
* ```js
|
|
30
|
-
* import { computed, task } from 'nanostores'
|
|
31
|
-
*
|
|
32
|
-
* import { $userId } from './users.js'
|
|
33
|
-
*
|
|
34
|
-
* export const $user = computed($userId, userId => task(async () => {
|
|
35
|
-
* const response = await fetch(`https://my-api/users/${userId}`)
|
|
36
|
-
* return response.json()
|
|
37
|
-
* }))
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
<Value, OriginStores extends AnyStore[]>(stores: [...OriginStores], cb: (...values: StoreValues<OriginStores>) => Task<Value> | Value): ReadableAtom<Value>;
|
|
41
|
-
}
|
|
42
|
-
declare const computed: Computed;
|
|
43
|
-
interface Batched {
|
|
44
|
-
<Value, OriginStore extends Store>(stores: OriginStore, cb: (value: StoreValue<OriginStore>) => Task<Value> | Value): ReadableAtom<Value>;
|
|
45
|
-
/**
|
|
46
|
-
* Create derived store, which use generates value from another stores.
|
|
47
|
-
*
|
|
48
|
-
* ```js
|
|
49
|
-
* import { batched } from 'nanostores'
|
|
50
|
-
*
|
|
51
|
-
* const $sortBy = atom('id')
|
|
52
|
-
* const $category = atom('')
|
|
53
|
-
*
|
|
54
|
-
* export const $link = batched([$sortBy, $category], (sortBy, category) => {
|
|
55
|
-
* return `/api/entities?sortBy=${sortBy}&category=${category}`
|
|
56
|
-
* })
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
<Value, OriginStores extends AnyStore[]>(stores: [...OriginStores], cb: (...values: StoreValues<OriginStores>) => Task<Value> | Value): ReadableAtom<Value>;
|
|
60
|
-
}
|
|
61
|
-
declare const batched: Batched;
|
|
62
|
-
//#endregion
|
|
63
|
-
export { computed as n, batched as t };
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/clean-stores/index.js
|
|
2
|
-
let clean = Symbol("clean");
|
|
3
|
-
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/atom/index.js
|
|
6
|
-
let listenerQueue = [];
|
|
7
|
-
let lqIndex = 0;
|
|
8
|
-
const QUEUE_ITEMS_PER_LISTENER = 4;
|
|
9
|
-
let epoch = 0;
|
|
10
|
-
const atom = /* @__NO_SIDE_EFFECTS__ */ (initialValue) => {
|
|
11
|
-
let listeners = [];
|
|
12
|
-
let $atom = {
|
|
13
|
-
get() {
|
|
14
|
-
if (!$atom.lc) $atom.listen(() => {})();
|
|
15
|
-
return $atom.value;
|
|
16
|
-
},
|
|
17
|
-
lc: 0,
|
|
18
|
-
listen(listener) {
|
|
19
|
-
$atom.lc = listeners.push(listener);
|
|
20
|
-
return () => {
|
|
21
|
-
for (let i = lqIndex + QUEUE_ITEMS_PER_LISTENER; i < listenerQueue.length;) if (listenerQueue[i] === listener) listenerQueue.splice(i, QUEUE_ITEMS_PER_LISTENER);
|
|
22
|
-
else i += QUEUE_ITEMS_PER_LISTENER;
|
|
23
|
-
let index = listeners.indexOf(listener);
|
|
24
|
-
if (~index) {
|
|
25
|
-
listeners.splice(index, 1);
|
|
26
|
-
if (!--$atom.lc) $atom.off();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
notify(oldValue, changedKey) {
|
|
31
|
-
epoch++;
|
|
32
|
-
let runListenerQueue = !listenerQueue.length;
|
|
33
|
-
for (let listener of listeners) listenerQueue.push(listener, $atom.value, oldValue, changedKey);
|
|
34
|
-
if (runListenerQueue) {
|
|
35
|
-
for (lqIndex = 0; lqIndex < listenerQueue.length; lqIndex += QUEUE_ITEMS_PER_LISTENER) listenerQueue[lqIndex](listenerQueue[lqIndex + 1], listenerQueue[lqIndex + 2], listenerQueue[lqIndex + 3]);
|
|
36
|
-
listenerQueue.length = 0;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
off() {},
|
|
40
|
-
set(newValue) {
|
|
41
|
-
let oldValue = $atom.value;
|
|
42
|
-
if (oldValue !== newValue) {
|
|
43
|
-
$atom.value = newValue;
|
|
44
|
-
$atom.notify(oldValue);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
subscribe(listener) {
|
|
48
|
-
let unbind = $atom.listen(listener);
|
|
49
|
-
listener($atom.value);
|
|
50
|
-
return unbind;
|
|
51
|
-
},
|
|
52
|
-
value: initialValue
|
|
53
|
-
};
|
|
54
|
-
if (process.env.NODE_ENV !== "production") $atom[clean] = () => {
|
|
55
|
-
listeners = [];
|
|
56
|
-
$atom.lc = 0;
|
|
57
|
-
$atom.off();
|
|
58
|
-
};
|
|
59
|
-
return $atom;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/lifecycle/index.js
|
|
64
|
-
const MOUNT = 5;
|
|
65
|
-
const UNMOUNT = 6;
|
|
66
|
-
const REVERT_MUTATION = 10;
|
|
67
|
-
let on = (object, listener, eventKey, mutateStore) => {
|
|
68
|
-
object.events = object.events || {};
|
|
69
|
-
if (!object.events[eventKey + REVERT_MUTATION]) object.events[eventKey + REVERT_MUTATION] = mutateStore((eventProps) => {
|
|
70
|
-
object.events[eventKey].reduceRight((event, l) => (l(event), event), {
|
|
71
|
-
shared: {},
|
|
72
|
-
...eventProps
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
object.events[eventKey] = object.events[eventKey] || [];
|
|
76
|
-
object.events[eventKey].push(listener);
|
|
77
|
-
return () => {
|
|
78
|
-
let currentListeners = object.events[eventKey];
|
|
79
|
-
let index = currentListeners.indexOf(listener);
|
|
80
|
-
currentListeners.splice(index, 1);
|
|
81
|
-
if (!currentListeners.length) {
|
|
82
|
-
delete object.events[eventKey];
|
|
83
|
-
object.events[eventKey + REVERT_MUTATION]();
|
|
84
|
-
delete object.events[eventKey + REVERT_MUTATION];
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
let STORE_UNMOUNT_DELAY = 1e3;
|
|
89
|
-
let onMount = ($store, initialize) => {
|
|
90
|
-
let listener = (payload) => {
|
|
91
|
-
let destroy = initialize(payload);
|
|
92
|
-
if (destroy) $store.events[UNMOUNT].push(destroy);
|
|
93
|
-
};
|
|
94
|
-
return on($store, listener, MOUNT, (runListeners) => {
|
|
95
|
-
let originListen = $store.listen;
|
|
96
|
-
$store.listen = (...args) => {
|
|
97
|
-
if (!$store.lc && !$store.active) {
|
|
98
|
-
$store.active = true;
|
|
99
|
-
runListeners();
|
|
100
|
-
}
|
|
101
|
-
return originListen(...args);
|
|
102
|
-
};
|
|
103
|
-
let originOff = $store.off;
|
|
104
|
-
$store.events[UNMOUNT] = [];
|
|
105
|
-
$store.off = () => {
|
|
106
|
-
originOff();
|
|
107
|
-
setTimeout(() => {
|
|
108
|
-
if ($store.active && !$store.lc) {
|
|
109
|
-
$store.active = false;
|
|
110
|
-
for (let destroy of $store.events[UNMOUNT]) destroy();
|
|
111
|
-
$store.events[UNMOUNT] = [];
|
|
112
|
-
}
|
|
113
|
-
}, STORE_UNMOUNT_DELAY);
|
|
114
|
-
};
|
|
115
|
-
if (process.env.NODE_ENV !== "production") {
|
|
116
|
-
let originClean = $store[clean];
|
|
117
|
-
$store[clean] = () => {
|
|
118
|
-
for (let destroy of $store.events[UNMOUNT]) destroy();
|
|
119
|
-
$store.events[UNMOUNT] = [];
|
|
120
|
-
$store.active = false;
|
|
121
|
-
originClean();
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
return () => {
|
|
125
|
-
$store.listen = originListen;
|
|
126
|
-
$store.off = originOff;
|
|
127
|
-
};
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/computed/index.js
|
|
133
|
-
let computedStore = (stores, cb, batched) => {
|
|
134
|
-
if (!Array.isArray(stores)) stores = [stores];
|
|
135
|
-
let previousArgs;
|
|
136
|
-
let currentEpoch;
|
|
137
|
-
let set = () => {
|
|
138
|
-
if (currentEpoch === epoch) return;
|
|
139
|
-
currentEpoch = epoch;
|
|
140
|
-
let args = stores.map(($store) => $store.get());
|
|
141
|
-
if (!previousArgs || args.some((arg, i) => arg !== previousArgs[i])) {
|
|
142
|
-
previousArgs = args;
|
|
143
|
-
let value = cb(...args);
|
|
144
|
-
if (value && value.then && value.t) value.then((asyncValue) => {
|
|
145
|
-
if (previousArgs === args) $computed.set(asyncValue);
|
|
146
|
-
});
|
|
147
|
-
else {
|
|
148
|
-
$computed.set(value);
|
|
149
|
-
currentEpoch = epoch;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
let $computed = /* @__PURE__ */ atom(void 0);
|
|
154
|
-
let get = $computed.get;
|
|
155
|
-
$computed.get = () => {
|
|
156
|
-
set();
|
|
157
|
-
return get();
|
|
158
|
-
};
|
|
159
|
-
let timer;
|
|
160
|
-
let run = batched ? () => {
|
|
161
|
-
clearTimeout(timer);
|
|
162
|
-
timer = setTimeout(set);
|
|
163
|
-
} : set;
|
|
164
|
-
onMount($computed, () => {
|
|
165
|
-
let unbinds = stores.map(($store) => $store.listen(run));
|
|
166
|
-
set();
|
|
167
|
-
return () => {
|
|
168
|
-
for (let unbind of unbinds) unbind();
|
|
169
|
-
};
|
|
170
|
-
});
|
|
171
|
-
return $computed;
|
|
172
|
-
};
|
|
173
|
-
const computed = /* @__NO_SIDE_EFFECTS__ */ (stores, fn) => computedStore(stores, fn);
|
|
174
|
-
const batched = /* @__NO_SIDE_EFFECTS__ */ (stores, fn) => computedStore(stores, fn, true);
|
|
175
|
-
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region ../../node_modules/.pnpm/nanostores@1.1.0/node_modules/nanostores/map/index.js
|
|
178
|
-
const map = /* @__NO_SIDE_EFFECTS__ */ (initial = {}) => {
|
|
179
|
-
let $map = /* @__PURE__ */ atom(initial);
|
|
180
|
-
$map.setKey = function(key, value) {
|
|
181
|
-
let oldMap = $map.value;
|
|
182
|
-
if (typeof value === "undefined" && key in $map.value) {
|
|
183
|
-
$map.value = { ...$map.value };
|
|
184
|
-
delete $map.value[key];
|
|
185
|
-
$map.notify(oldMap, key);
|
|
186
|
-
} else if ($map.value[key] !== value) {
|
|
187
|
-
$map.value = {
|
|
188
|
-
...$map.value,
|
|
189
|
-
[key]: value
|
|
190
|
-
};
|
|
191
|
-
$map.notify(oldMap, key);
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
return $map;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
//#endregion
|
|
198
|
-
export { atom as i, batched as n, computed as r, map as t };
|
package/dist/_chunks/model.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentNodeModel, DeploymentRelationModel as DeploymentRelationModel$1, EdgeModel, ElementModel as ElementModel$1, LikeC4DeploymentModel, LikeC4Model, LikeC4Model as LikeC4Model$1, LikeC4ViewModel as LikeC4ViewModel$1, NodeModel, RelationshipModel as RelationshipModel$1, deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel as isDeploymentElementModel$1, isDeploymentNodeModel, isDeploymentRelationModel as isDeploymentRelationModel$1, isEdgeModel, isElementModel as isElementModel$1, isIncoming, isLikeC4ViewModel as isLikeC4ViewModel$1, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel as isRelationModel$1, mergeConnections, modelConnection as modelConnection$1, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from "@likec4/core/model";
|
|
2
|
-
|
|
3
|
-
//#region src/model/index.ts
|
|
4
|
-
/**
|
|
5
|
-
* Used by vite plugin to generate `virtual:likec4/model`
|
|
6
|
-
*/
|
|
7
|
-
function createLikeC4Model(model) {
|
|
8
|
-
return LikeC4Model.create(model);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { isIncoming as A, sortDeepestFirst as B, isAnyInOut as C, isDeploymentRelationModel$1 as D, isDeploymentNodeModel as E, isOutgoing as F, isRelationModel$1 as I, mergeConnections as L, isNestedConnection as M, isNestedElementOfDeployedInstanceModel as N, isEdgeModel as O, isNodeModel as P, modelConnection$1 as R, hasSameTarget as S, isDeploymentElementModel$1 as T, findAscendingConnections as _, DeploymentNodeModel as a, hasSameSource as b, ElementModel$1 as c, LikeC4ViewModel$1 as d, NodeModel as f, differenceConnections as g, deploymentConnection as h, DeploymentConnectionModel as i, isLikeC4ViewModel$1 as j, isElementModel$1 as k, LikeC4DeploymentModel as l, createLikeC4Model as m, ConnectionModel as n, DeploymentRelationModel$1 as o, RelationshipModel$1 as p, DeployedInstanceModel as r, EdgeModel as s, Connection as t, LikeC4Model$1 as u, findDeepestNestedConnection as v, isDeployedInstanceModel as w, hasSameSourceTarget as x, findDescendantConnections as y, sortConnectionsByBoundaryHierarchy as z };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Ct as WorkspaceFolder, Et as Module, y as DeepPartial } from "./libs/langium.mjs";
|
|
2
|
-
import { n as LikeC4Services } from "./index2.mjs";
|
|
3
|
-
import "boxen";
|
|
4
|
-
import { LogErrorOptions, LogType } from "vite";
|
|
5
|
-
|
|
6
|
-
//#region src/logger.d.ts
|
|
7
|
-
declare function createLikeC4Logger(prefix: string | readonly [string, ...string[]]): {
|
|
8
|
-
info(msg: string): void;
|
|
9
|
-
warn(msg: unknown): void;
|
|
10
|
-
warnOnce(msg: string): void;
|
|
11
|
-
error(msg: unknown, options?: LogErrorOptions): void;
|
|
12
|
-
clearScreen: (_type: LogType) => void;
|
|
13
|
-
hasErrorLogged: (_error: any) => boolean;
|
|
14
|
-
hasWarned: boolean;
|
|
15
|
-
};
|
|
16
|
-
type ViteLogger = ReturnType<typeof createLikeC4Logger>;
|
|
17
|
-
type Logger = {
|
|
18
|
-
info(msg: string): void;
|
|
19
|
-
warn(msg: unknown): void;
|
|
20
|
-
error(err: unknown): void;
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/language/Workspace.d.ts
|
|
24
|
-
declare class CliWorkspace {
|
|
25
|
-
private services;
|
|
26
|
-
private isInitialized;
|
|
27
|
-
constructor(services: CliServices);
|
|
28
|
-
initWorkspace(workspace: WorkspaceFolder): Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/language/module.d.ts
|
|
32
|
-
type CliAddedServices = {
|
|
33
|
-
logger: Logger;
|
|
34
|
-
cli: {
|
|
35
|
-
Workspace: CliWorkspace;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
type CliServices = LikeC4Services & CliAddedServices;
|
|
39
|
-
declare const CliModule: Module<CliServices, DeepPartial<LikeC4Services> & CliAddedServices>;
|
|
40
|
-
type CreateLanguageServiceOptions = {
|
|
41
|
-
/**
|
|
42
|
-
* Whether to use the file system for the language service.
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
useFileSystem?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Whether to watch for changes in the workspace.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
watch?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Logger to use for the language service.
|
|
53
|
-
* @default 'default'
|
|
54
|
-
*/
|
|
55
|
-
logger?: Logger | 'vite' | 'default' | false;
|
|
56
|
-
/**
|
|
57
|
-
* Whether to use the `dot` binary for layouting or the WebAssembly version.
|
|
58
|
-
* @default 'wasm'
|
|
59
|
-
*/
|
|
60
|
-
graphviz?: 'wasm' | 'binary';
|
|
61
|
-
/**
|
|
62
|
-
* Whether to start MCP server
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
mcp?: false | 'stdio' | {
|
|
66
|
-
port: number;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
declare function createLanguageServices(opts?: CreateLanguageServiceOptions): CliServices;
|
|
70
|
-
//#endregion
|
|
71
|
-
export { createLanguageServices as a, CreateLanguageServiceOptions as i, CliModule as n, Logger as o, CliServices as r, ViteLogger as s, CliAddedServices as t };
|