likec4 1.38.0 → 1.38.1
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/dist/cli/index.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.CRYZWScz.d.mts → likec4.B2TmMA5i.d.mts} +4 -1
- package/dist/shared/{likec4.enfOs0BB.mjs → likec4.CunVXntg.mjs} +2261 -2267
- package/dist/shared/{likec4.D6zjV21i.mjs → likec4.DkfFVqY-.mjs} +1 -1
- package/dist/vite-plugin/index.d.mts +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +12 -12
package/dist/cli/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{k as He,o as kh,p as Ot,q as Cs,t as lr,r as ca,C as ua,e as Dh,d as Wt,u as B,w as la,s as xh,v as Mh,x as at,y as fa,z as Ur,A as gt,B as qh,h as da,D as ha,c as Uh,L as Fe,P as Hh,j as pa,E as Fh,F as ma,G as nt,H as Vh,I as zh,n as Gh,J as Ct,K as fr,M as Ps,O as ga,Q as Bh,R as Wh}from"../shared/likec4.
|
|
2
|
+
import{k as He,o as kh,p as Ot,q as Cs,t as lr,r as ca,C as ua,e as Dh,d as Wt,u as B,w as la,s as xh,v as Mh,x as at,y as fa,z as Ur,A as gt,B as qh,h as da,D as ha,c as Uh,L as Fe,P as Hh,j as pa,E as Fh,F as ma,G as nt,H as Vh,I as zh,n as Gh,J as Ct,K as fr,M as Ps,O as ga,Q as Bh,R as Wh}from"../shared/likec4.CunVXntg.mjs";import he,{existsSync as Pt,copyFileSync as ya,readdirSync as Kh,rmSync as Is}from"node:fs";import Se,{hrtime as Yh,cwd as Ns,exit as $a,stdout as Xh,argv as Jh}from"node:process";
|
|
3
3
|
import{strictEqual as Qh,notStrictEqual as Zh}from"assert";import Ts,{resolve as Ve,dirname as js,normalize as ep,relative as tp,extname as rp,basename as np}from"path";import{statSync as _a,readdirSync as sp,readFileSync as Ls,writeFile as ip}from"fs";import va,{format as ba,inspect as op}from"util";import{fileURLToPath as ap}from"url";import me,{resolve as ge,dirname as It,join as dr,relative as yt,extname as hr,isAbsolute as ks,basename as Hr}from"node:path";import wa,{mkdtemp as Fr,writeFile as Nt,
|
|
4
|
-
mkdir as ct,stat as Ds,copyFile as cp,rm as up}from"node:fs/promises";import pr,{tmpdir as Vr}from"node:os";import{fileURLToPath as Ea}from"node:url";import xs from"@vitejs/plugin-react";import{j as Sa,e as Ra,C as lp,t as Aa,N as Kt,L as Ms,g as fp,a as dp,b as hp}from"../shared/likec4.
|
|
4
|
+
mkdir as ct,stat as Ds,copyFile as cp,rm as up}from"node:fs/promises";import pr,{tmpdir as Vr}from"node:os";import{fileURLToPath as Ea}from"node:url";import xs from"@vitejs/plugin-react";import{j as Sa,e as Ra,C as lp,t as Aa,N as Kt,L as Ms,g as fp,a as dp,b as hp}from"../shared/likec4.DkfFVqY-.mjs";import{build as mr,createServer as pp,preview as mp}from"vite";import gp from"node:module";import{compareNatural as yp,sortNaturalByFqn as $p,invariant as zr,hasAtLeast as qs,nonexhaustive as Oa,delay as Ca}from"@likec4/core";
|
|
5
5
|
import{chromium as Pa}from"playwright";import _p from"node:net";import{setTimeout as vp}from"node:timers/promises";import{promisify as Ie,isDeepStrictEqual as bp}from"node:util";import gr from"node:crypto";import wp from"node:assert";import{u as Ep}from"../shared/likec4.BeWJWU7_.mjs";import"tty";import"os";import"crypto";import"net";import"child_process";import"fs/promises";import"events";import"node:stream";import"http";import"http2";import"stream";import"buffer";import"string_decoder";import"node:buffer";
|
|
6
6
|
import"node:http";import"@likec4/core/types";import"@hpcc-js/wasm-graphviz";import"@likec4/core/model";import"@likec4/core/utils";import"@likec4/core/compute-view";import"boxen";import"node:child_process";import"node:events";import"node:stream/promises";import"node:readline/promises";import"../shared/likec4.B7noVoso.mjs";function Sp(...r){return Ep(Rp,r)}var Rp=r=>`${r[0]?.toUpperCase()??""}${r.slice(1)}`;let Us;function Ap(){try{return he.statSync("/.dockerenv"),!0}catch{return!1}}function Op(){
|
|
7
7
|
try{return he.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function Cp(){return Us===void 0&&(Us=Ap()||Op()),Us}let Hs;const Pp=()=>{try{return he.statSync("/run/.containerenv"),!0}catch{return!1}};function ut(){return Hs===void 0&&(Hs=Pp()||Cp()),Hs}const Gr=Object.create(null),yr=r=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(r?Gr:globalThis),$t=new Proxy(Gr,{get(r,e){return yr()[e]??Gr[e]},has(r,e){const t=yr();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LikeC4Model } from '@likec4/core/model';
|
|
2
2
|
import { UnknownLayouted } from './model/index.mjs';
|
|
3
|
-
import { W as WorkspaceFolder, a as LikeC4Services, L as LikeC4LanguageServices, b as LikeC4Views, R as Range } from './shared/likec4.
|
|
3
|
+
import { W as WorkspaceFolder, a as LikeC4Services, L as LikeC4LanguageServices, b as LikeC4Views, R as Range } from './shared/likec4.B2TmMA5i.mjs';
|
|
4
4
|
import { ProjectId, NonEmptyArray } from '@likec4/core';
|
|
5
5
|
import { DiagramView } from '@likec4/core/types';
|
|
6
6
|
export * from '@likec4/core/types';
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{LikeC4Model as o}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.
|
|
1
|
+
import{LikeC4Model as o}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.CunVXntg.mjs";import"node:fs";import"node:path";import"node:url";import"./shared/likec4.BeWJWU7_.mjs";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core";import"fs/promises";import"events";import"node:fs/promises";import"node:stream";import"node:process";import"http";import"http2";import"stream";import"buffer";
|
|
2
2
|
import"string_decoder";import"node:crypto";import"node:buffer";import"node:http";import"@likec4/core/types";import"@hpcc-js/wasm-graphviz";import"@likec4/core/utils";import"@likec4/core/compute-view";import"boxen";import"node:child_process";import"node:events";import"node:stream/promises";import"node:readline/promises";import"node:os";function t(r){return o.create(r)}export{t as createLikeC4Model};
|
|
@@ -15564,7 +15564,9 @@ declare class IndexManager extends DefaultIndexManager {
|
|
|
15564
15564
|
|
|
15565
15565
|
declare class LangiumDocuments extends DefaultLangiumDocuments {
|
|
15566
15566
|
protected services: LikeC4SharedServices;
|
|
15567
|
+
protected compare: any;
|
|
15567
15568
|
constructor(services: LikeC4SharedServices);
|
|
15569
|
+
addDocument(document: LangiumDocument): void;
|
|
15568
15570
|
/**
|
|
15569
15571
|
* Returns all user documents, excluding built-in documents.
|
|
15570
15572
|
*/
|
|
@@ -17097,7 +17099,7 @@ declare const ProjectConfig: ObjectSchema<{
|
|
|
17097
17099
|
type ProjectConfig = InferOutput<typeof ProjectConfig>;
|
|
17098
17100
|
|
|
17099
17101
|
/**
|
|
17100
|
-
* A tagged string that represents a project folder
|
|
17102
|
+
* A tagged string that represents a project folder URI
|
|
17101
17103
|
* Always has trailing slash.
|
|
17102
17104
|
*/
|
|
17103
17105
|
type ProjectFolder = Tagged<string, 'ProjectFolder'>;
|
|
@@ -18136,6 +18138,7 @@ interface LikeC4LanguageServices {
|
|
|
18136
18138
|
}>;
|
|
18137
18139
|
/**
|
|
18138
18140
|
* Notifies the language server about changes in the workspace
|
|
18141
|
+
* @deprecated use watcher instead
|
|
18139
18142
|
*/
|
|
18140
18143
|
notifyUpdate(update: {
|
|
18141
18144
|
changed?: string;
|