likec4 1.49.0 → 1.51.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 (99) hide show
  1. package/__app__/src/likec4.js +33 -62
  2. package/__app__/src/main.js +2 -56
  3. package/__app__/src/routes/index.js +81 -16
  4. package/__app__/src/routes/single.js +43 -23
  5. package/__app__/src/style.css +1 -1
  6. package/__app__/src/vendors.js +17891 -17752
  7. package/config/schema.json +16 -0
  8. package/dist/THIRD-PARTY-LICENSES.md +192 -62
  9. package/dist/_chunks/LikeC4.mjs +1 -0
  10. package/dist/_chunks/filesystem.mjs +1230 -0
  11. package/dist/_chunks/index.d.mts +11 -12
  12. package/dist/_chunks/index2.d.mts +173 -84
  13. package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +30 -0
  14. package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +8 -8
  15. package/dist/_chunks/libs/@chevrotain/types.d.mts +1 -0
  16. package/dist/_chunks/libs/@chevrotain/utils.mjs +1 -1
  17. package/dist/_chunks/libs/@hono/mcp.mjs +8 -8
  18. package/dist/_chunks/libs/@hono/node-server.mjs +1 -1
  19. package/dist/_chunks/libs/@logtape/logtape.mjs +3 -3
  20. package/dist/_chunks/libs/@lume/kiwi.mjs +1 -1
  21. package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +114 -14
  22. package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +7 -7
  23. package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -1
  24. package/dist/_chunks/libs/@nanostores/react.d.mts +61 -1
  25. package/dist/_chunks/libs/@nanostores/react.mjs +1 -1
  26. package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +1 -0
  27. package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -1
  28. package/dist/_chunks/libs/ajv.mjs +1 -1
  29. package/dist/_chunks/libs/ansi-align.mjs +2 -0
  30. package/dist/_chunks/libs/ansi-regex.mjs +1 -0
  31. package/dist/_chunks/libs/ansi-styles.mjs +1 -0
  32. package/dist/_chunks/libs/atomically.mjs +1 -1
  33. package/dist/_chunks/libs/birpc.mjs +1 -1
  34. package/dist/_chunks/libs/boxen.d.mts +1 -0
  35. package/dist/_chunks/libs/boxen.mjs +22 -0
  36. package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -2
  37. package/dist/_chunks/libs/chevrotain.mjs +35 -35
  38. package/dist/_chunks/libs/conf.mjs +1 -1
  39. package/dist/_chunks/libs/defu.mjs +1 -1
  40. package/dist/_chunks/libs/esm-env.mjs +1 -1
  41. package/dist/_chunks/libs/eventemitter3.mjs +1 -1
  42. package/dist/_chunks/libs/fast-equals.mjs +1 -1
  43. package/dist/_chunks/libs/find-up-simple.mjs +1 -1
  44. package/dist/_chunks/libs/get-port.mjs +1 -1
  45. package/dist/_chunks/libs/is-docker.mjs +1 -1
  46. package/dist/_chunks/libs/is-error-instance.mjs +1 -1
  47. package/dist/_chunks/libs/is-inside-container.mjs +1 -1
  48. package/dist/_chunks/libs/is-plain-obj.mjs +1 -1
  49. package/dist/_chunks/libs/isexe.mjs +1 -1
  50. package/dist/_chunks/libs/json5.mjs +10 -10
  51. package/dist/_chunks/libs/khroma.mjs +1 -1
  52. package/dist/_chunks/libs/ky.mjs +2 -2
  53. package/dist/_chunks/libs/langium.d.mts +5 -4
  54. package/dist/_chunks/libs/langium.mjs +20 -19
  55. package/dist/_chunks/libs/merge-error-cause.mjs +2 -2
  56. package/dist/_chunks/libs/p-limit.mjs +1 -1
  57. package/dist/_chunks/libs/p-queue.mjs +1 -1
  58. package/dist/_chunks/libs/package-manager-detector.mjs +1 -1
  59. package/dist/_chunks/libs/package-up.mjs +1 -1
  60. package/dist/_chunks/libs/pako.mjs +1 -0
  61. package/dist/_chunks/libs/parse-ms.mjs +1 -1
  62. package/dist/_chunks/libs/pathe.mjs +1 -1
  63. package/dist/_chunks/libs/picomatch.mjs +1 -1
  64. package/dist/_chunks/libs/pretty-ms.mjs +1 -1
  65. package/dist/_chunks/libs/remeda.mjs +2 -1
  66. package/dist/_chunks/libs/safe-stringify.mjs +1 -1
  67. package/dist/_chunks/libs/strip-indent.mjs +1 -1
  68. package/dist/_chunks/libs/tinyrainbow.mjs +1 -1
  69. package/dist/_chunks/libs/ts-graphviz.mjs +3 -3
  70. package/dist/_chunks/libs/ufo.mjs +1 -1
  71. package/dist/_chunks/libs/vscode-languageserver.mjs +1 -0
  72. package/dist/_chunks/libs/which.mjs +1 -1
  73. package/dist/_chunks/libs/word-wrap.mjs +2 -2
  74. package/dist/_chunks/rolldown-runtime.mjs +1 -1
  75. package/dist/_chunks/sequence.mjs +1 -0
  76. package/dist/_chunks/src.mjs +15 -0
  77. package/dist/_chunks/src2.mjs +499 -0
  78. package/dist/cli/index.mjs +84 -231
  79. package/dist/config/index.mjs +1 -1
  80. package/dist/index.d.mts +810 -4
  81. package/dist/index.mjs +1 -1
  82. package/dist/model/index.mjs +1 -1
  83. package/dist/vite-plugin/index.d.mts +3 -0
  84. package/dist/vite-plugin/index.mjs +1 -1
  85. package/dist/vite-plugin/internal.d.mts +1 -2
  86. package/dist/vite-plugin/internal.mjs +1 -1
  87. package/package.json +28 -29
  88. package/react/index.d.mts +2 -2
  89. package/react/index.mjs +52 -76
  90. package/vite-plugin-modules.d.ts +5 -0
  91. package/dist/_chunks/GraphvizBinaryAdapter.mjs +0 -72
  92. package/dist/_chunks/filenames.mjs +0 -14
  93. package/dist/_chunks/libs/@chevrotain/gast.mjs +0 -1
  94. package/dist/_chunks/libs/@logtape/logtape.d.mts +0 -741
  95. package/dist/_chunks/libs/nanostores.d.mts +0 -63
  96. package/dist/_chunks/libs/nanostores.mjs +0 -1
  97. package/dist/_chunks/node.mjs +0 -481
  98. package/dist/_chunks/plugin.mjs +0 -322
  99. package/dist/_chunks/sequence-view.mjs +0 -1
@@ -36,6 +36,14 @@
36
36
  "type": "string",
37
37
  "minLength": 1
38
38
  },
39
+ "metadata": {
40
+ "description": "Arbitrary metadata as key-value pairs for custom project information",
41
+ "type": "object",
42
+ "propertyNames": {
43
+ "type": "string"
44
+ },
45
+ "additionalProperties": {}
46
+ },
39
47
  "styles": {
40
48
  "description": "Project styles customization",
41
49
  "type": "object",
@@ -70,6 +78,14 @@
70
78
  },
71
79
  "manualLayouts": {
72
80
  "$ref": "#/$defs/ManualLayoutsConfig"
81
+ },
82
+ "inferTechnologyFromIcon": {
83
+ "description": "Automatically derive element technology from icon name when technology is not set explicitly.\nApplies to aws:, azure:, gcp:, and tech: icons. Bootstrap icons are excluded.\nDefaults to true.",
84
+ "type": "boolean"
85
+ },
86
+ "implicitViews": {
87
+ "description": "Auto-generate scoped views for elements without explicit views. Defaults to true.",
88
+ "type": "boolean"
73
89
  }
74
90
  },
75
91
  "required": [
@@ -1,7 +1,7 @@
1
1
  # Licenses of Bundled Dependencies
2
2
 
3
3
  The published artifact additionally contains code with the following licenses:
4
- Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, MIT
4
+ Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, MIT, (MIT AND Zlib)
5
5
 
6
6
  # Bundled Dependencies
7
7
 
@@ -657,90 +657,66 @@ Repository: https://github.com/ajv-validator/ajv-formats
657
657
 
658
658
  ---------------------------------------
659
659
 
660
- ## atomically
660
+ ## ansi-align
661
661
 
662
- Repository: https://github.com/fabiospampinato/atomically
662
+ License: ISC
663
+ By: nexdrew
664
+ Repository: https://github.com/nexdrew/ansi-align
663
665
 
664
- > The MIT License (MIT)
666
+ > Copyright (c) 2016, Contributors
665
667
  >
666
- > Copyright (c) 2020-present Fabio Spampinato
667
- >
668
- > Permission is hereby granted, free of charge, to any person obtaining a
669
- > copy of this software and associated documentation files (the "Software"),
670
- > to deal in the Software without restriction, including without limitation
671
- > the rights to use, copy, modify, merge, publish, distribute, sublicense,
672
- > and/or sell copies of the Software, and to permit persons to whom the
673
- > Software is furnished to do so, subject to the following conditions:
668
+ > Permission to use, copy, modify, and/or distribute this software for any purpose
669
+ > with or without fee is hereby granted, provided that the above copyright notice
670
+ > and this permission notice appear in all copies.
674
671
  >
675
- > The above copyright notice and this permission notice shall be included in
676
- > all copies or substantial portions of the Software.
677
- >
678
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
679
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
680
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
681
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
682
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
683
- > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
684
- > DEALINGS IN THE SOFTWARE.
672
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
673
+ > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
674
+ > FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
675
+ > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
676
+ > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
677
+ > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
678
+ > THIS SOFTWARE.
685
679
 
686
680
  ---------------------------------------
687
681
 
688
- ## birpc
682
+ ## ansi-regex, is-fullwidth-code-point, string-width, strip-ansi
689
683
 
690
684
  License: MIT
691
- By: Anthony Fu
692
- Repository: https://github.com/antfu-collective/birpc
685
+ By: Sindre Sorhus
686
+ Repositories: https://github.com/chalk/ansi-regex, https://github.com/sindresorhus/is-fullwidth-code-point, https://github.com/sindresorhus/string-width, https://github.com/chalk/strip-ansi
693
687
 
694
688
  > MIT License
695
689
  >
696
- > Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
690
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
697
691
  >
698
- > Permission is hereby granted, free of charge, to any person obtaining a copy
699
- > of this software and associated documentation files (the "Software"), to deal
700
- > in the Software without restriction, including without limitation the rights
701
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
702
- > copies of the Software, and to permit persons to whom the Software is
703
- > furnished to do so, subject to the following conditions:
692
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
704
693
  >
705
- > The above copyright notice and this permission notice shall be included in all
706
- > copies or substantial portions of the Software.
694
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
707
695
  >
708
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
709
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
710
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
711
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
712
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
713
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
714
- > SOFTWARE.
696
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
715
697
 
716
698
  ---------------------------------------
717
699
 
718
- ## chevrotain-allstar
700
+ ## ansi-styles, boxen, camelcase, chalk, cli-boxes, conf, debounce-fn, dot-prop, env-paths, find-up-simple, get-east-asian-width, get-port, is-docker, is-inside-container, is-plain-obj, ky, mimic-function, p-limit, p-queue, p-timeout, package-up, parse-ms, pretty-ms, safe-stringify, strip-indent, uint8array-extras, widest-line, wrap-ansi, yocto-queue
719
701
 
720
702
  License: MIT
721
- By: TypeFox
722
- Repository: https://github.com/langium/chevrotain-allstar
703
+ By: Sindre Sorhus
704
+ Repository: https://github.com/chalk/ansi-styles
723
705
 
724
- > Copyright 2022 TypeFox GmbH
725
- >
726
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
727
- > associated documentation files (the "Software"), to deal in the Software without restriction,
728
- > including without limitation the rights to use, copy, modify, merge, publish, distribute,
729
- > sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
730
- > furnished to do so, subject to the following conditions:
731
- >
732
- > The above copyright notice and this permission notice shall be included in all copies or
733
- > substantial portions of the Software.
734
- >
735
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
736
- > BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
737
- > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
738
- > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
739
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
706
+ License: MIT
707
+ By: Sindre Sorhus
708
+ Repository: https://github.com/sindresorhus/boxen
740
709
 
741
- ---------------------------------------
710
+ License: MIT
711
+ By: Sindre Sorhus
712
+ Repository: https://github.com/sindresorhus/camelcase
742
713
 
743
- ## conf, debounce-fn, dot-prop, env-paths, find-up-simple, get-port, is-docker, is-inside-container, is-plain-obj, ky, mimic-function, p-limit, p-queue, p-timeout, package-up, parse-ms, pretty-ms, safe-stringify, strip-indent, uint8array-extras, yocto-queue
714
+ License: MIT
715
+ Repository: https://github.com/chalk/chalk
716
+
717
+ License: MIT
718
+ By: Sindre Sorhus
719
+ Repository: https://github.com/sindresorhus/cli-boxes
744
720
 
745
721
  License: MIT
746
722
  By: Sindre Sorhus
@@ -762,6 +738,10 @@ License: MIT
762
738
  By: Sindre Sorhus
763
739
  Repository: https://github.com/sindresorhus/find-up-simple
764
740
 
741
+ License: MIT
742
+ By: Sindre Sorhus
743
+ Repository: https://github.com/sindresorhus/get-east-asian-width
744
+
765
745
  License: MIT
766
746
  By: Sindre Sorhus
767
747
  Repository: https://github.com/sindresorhus/get-port
@@ -821,6 +801,14 @@ License: MIT
821
801
  By: Sindre Sorhus
822
802
  Repository: https://github.com/sindresorhus/uint8array-extras
823
803
 
804
+ License: MIT
805
+ By: Sindre Sorhus
806
+ Repository: https://github.com/sindresorhus/widest-line
807
+
808
+ License: MIT
809
+ By: Sindre Sorhus
810
+ Repository: https://github.com/chalk/wrap-ansi
811
+
824
812
  License: MIT
825
813
  By: Sindre Sorhus
826
814
  Repository: https://github.com/sindresorhus/yocto-queue
@@ -837,6 +825,89 @@ Repository: https://github.com/sindresorhus/yocto-queue
837
825
 
838
826
  ---------------------------------------
839
827
 
828
+ ## atomically
829
+
830
+ Repository: https://github.com/fabiospampinato/atomically
831
+
832
+ > The MIT License (MIT)
833
+ >
834
+ > Copyright (c) 2020-present Fabio Spampinato
835
+ >
836
+ > Permission is hereby granted, free of charge, to any person obtaining a
837
+ > copy of this software and associated documentation files (the "Software"),
838
+ > to deal in the Software without restriction, including without limitation
839
+ > the rights to use, copy, modify, merge, publish, distribute, sublicense,
840
+ > and/or sell copies of the Software, and to permit persons to whom the
841
+ > Software is furnished to do so, subject to the following conditions:
842
+ >
843
+ > The above copyright notice and this permission notice shall be included in
844
+ > all copies or substantial portions of the Software.
845
+ >
846
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
847
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
848
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
849
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
850
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
851
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
852
+ > DEALINGS IN THE SOFTWARE.
853
+
854
+ ---------------------------------------
855
+
856
+ ## birpc
857
+
858
+ License: MIT
859
+ By: Anthony Fu
860
+ Repository: https://github.com/antfu-collective/birpc
861
+
862
+ > MIT License
863
+ >
864
+ > Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
865
+ >
866
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
867
+ > of this software and associated documentation files (the "Software"), to deal
868
+ > in the Software without restriction, including without limitation the rights
869
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
870
+ > copies of the Software, and to permit persons to whom the Software is
871
+ > furnished to do so, subject to the following conditions:
872
+ >
873
+ > The above copyright notice and this permission notice shall be included in all
874
+ > copies or substantial portions of the Software.
875
+ >
876
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
877
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
878
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
879
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
880
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
881
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
882
+ > SOFTWARE.
883
+
884
+ ---------------------------------------
885
+
886
+ ## chevrotain-allstar
887
+
888
+ License: MIT
889
+ By: TypeFox
890
+ Repository: https://github.com/langium/chevrotain-allstar
891
+
892
+ > Copyright 2022 TypeFox GmbH
893
+ >
894
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
895
+ > associated documentation files (the "Software"), to deal in the Software without restriction,
896
+ > including without limitation the rights to use, copy, modify, merge, publish, distribute,
897
+ > sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
898
+ > furnished to do so, subject to the following conditions:
899
+ >
900
+ > The above copyright notice and this permission notice shall be included in all copies or
901
+ > substantial portions of the Software.
902
+ >
903
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
904
+ > BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
905
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
906
+ > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
907
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
908
+
909
+ ---------------------------------------
910
+
840
911
  ## defu, ufo
841
912
 
842
913
  License: MIT
@@ -866,6 +937,35 @@ Repositories: https://github.com/unjs/defu, https://github.com/unjs/ufo
866
937
 
867
938
  ---------------------------------------
868
939
 
940
+ ## emoji-regex
941
+
942
+ License: MIT
943
+ By: Mathias Bynens
944
+ Repository: https://github.com/mathiasbynens/emoji-regex
945
+
946
+ > Copyright Mathias Bynens <https://mathiasbynens.be/>
947
+ >
948
+ > Permission is hereby granted, free of charge, to any person obtaining
949
+ > a copy of this software and associated documentation files (the
950
+ > "Software"), to deal in the Software without restriction, including
951
+ > without limitation the rights to use, copy, modify, merge, publish,
952
+ > distribute, sublicense, and/or sell copies of the Software, and to
953
+ > permit persons to whom the Software is furnished to do so, subject to
954
+ > the following conditions:
955
+ >
956
+ > The above copyright notice and this permission notice shall be
957
+ > included in all copies or substantial portions of the Software.
958
+ >
959
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
960
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
961
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
962
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
963
+ > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
964
+ > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
965
+ > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
966
+
967
+ ---------------------------------------
968
+
869
969
  ## esm-env
870
970
 
871
971
  License: MIT
@@ -1358,6 +1458,36 @@ Repository: https://github.com/antfu-collective/package-manager-detector
1358
1458
 
1359
1459
  ---------------------------------------
1360
1460
 
1461
+ ## pako
1462
+
1463
+ License: (MIT AND Zlib)
1464
+ By: Andrei Tuputcyn, Vitaly Puzrin, Friedel Ziegelmayer, Kirill Efimov, Jean-loup Gailly, Mark Adler
1465
+ Repository: https://github.com/nodeca/pako
1466
+
1467
+ > (The MIT License)
1468
+ >
1469
+ > Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
1470
+ >
1471
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
1472
+ > of this software and associated documentation files (the "Software"), to deal
1473
+ > in the Software without restriction, including without limitation the rights
1474
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1475
+ > copies of the Software, and to permit persons to whom the Software is
1476
+ > furnished to do so, subject to the following conditions:
1477
+ >
1478
+ > The above copyright notice and this permission notice shall be included in
1479
+ > all copies or substantial portions of the Software.
1480
+ >
1481
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1482
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1483
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1484
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1485
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1486
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1487
+ > THE SOFTWARE.
1488
+
1489
+ ---------------------------------------
1490
+
1361
1491
  ## pathe
1362
1492
 
1363
1493
  License: MIT
@@ -0,0 +1 @@
1
+ import{_ as e,a as t,c as n,d as r,f as i,h as a,i as o,l as s,m as c,o as l,p as u,r as d,s as f,t as p,x as m}from"./filesystem.mjs";import{t as h}from"./libs/defu.mjs";import{r as g,t as _}from"./libs/pathe.mjs";import{n as v}from"./libs/tinyrainbow.mjs";import{l as y}from"./libs/ufo.mjs";import{memoizeProp as b}from"@likec4/core";import{pathToFileURL as x}from"url";function S(a){let c=e.getChild(`lang`),u=h(a,{useFileSystem:!0,manualLayouts:!0,watch:!1,graphviz:`wasm`,mcp:!1}),p=u.graphviz===`binary`;c.info(`${v.dim(`layout`)} ${p?`binary`:`wasm`}`);let g=d({...u.useFileSystem?{...l(u.watch),...u.manualLayouts?s:n}:{...f,...n},...u.mcp?t(u.mcp===`stdio`?`stdio`:u.mcp):{},...o(p?new r:new i)});return typeof u.mcp==`object`&&u.mcp.port&&g.likec4.mcp.Server.start(u.mcp.port).catch(e=>{c.error(m(e))}),u.mcp===`stdio`&&g.likec4.mcp.Server.start().catch(e=>{c.error(m(e))}),g}async function C(t,n){p(n);let r=g(t),i=y(x(r).toString());return b(globalThis,`likec4:`+r,async()=>{let t=e.getChild(`lang`),o=S(h(n,{...a,useFileSystem:!0,manualLayouts:!0,watch:!1,mcp:!1})),s={name:_(r),uri:i},l=o.shared.workspace.WorkspaceManager;t.info(`${v.dim(`workspace:`)} ${r}`),l.initialize({capabilities:{},processId:null,rootUri:null,workspaceFolders:[s]}),await l.initializeWorkspace([s]);let u=o.shared.workspace.LangiumDocuments.userDocuments.toArray();if(u.length===0&&(t.error(`no LikeC4 sources found`),n?.throwIfInvalid))throw Error(`no LikeC4 sources found`);return t.info(`${v.dim(`workspace:`)} found ${u.length} source files`),c(o,e,n)})}async function w(t,n){p(n);let r=e.getChild(`lang`);return await u(S(h(n,{...a,useFileSystem:!1,watch:!1,manualLayouts:!1,mcp:!1})),r,t,n)}async function T(e,t){return w({"source.c4":e},t)}let E;(function(e){async function t(e,t){return T(e,t)}e.fromSource=t;async function n(e=`.`,t){return C(e,t)}e.fromWorkspace=n})(E||={});export{C as n,E as t};