@ggml-org/llama-chat 0.0.0-stage → 0.1.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 (77) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +196 -2
  3. package/bin/cli.js +5 -0
  4. package/cli/server.js +385 -0
  5. package/dist/_app/immutable/assets/LlamaMono.7z2dnkpH.woff2 +0 -0
  6. package/dist/_app/immutable/assets/LlamaSans.C2rXtH67.woff2 +0 -0
  7. package/dist/_app/immutable/assets/bundle.DL4TcXwg.css +2 -0
  8. package/dist/_app/immutable/bundle.DIMNEksO.js +4068 -0
  9. package/dist/_app/version.json +1 -0
  10. package/dist/apple-splash-landscape-1136x640.png +0 -0
  11. package/dist/apple-splash-landscape-1334x750.png +0 -0
  12. package/dist/apple-splash-landscape-2266x1488.png +0 -0
  13. package/dist/apple-splash-landscape-2360x1640.png +0 -0
  14. package/dist/apple-splash-landscape-2388x1668.png +0 -0
  15. package/dist/apple-splash-landscape-2532x1170.png +0 -0
  16. package/dist/apple-splash-landscape-2556x1179.png +0 -0
  17. package/dist/apple-splash-landscape-2622x1206.png +0 -0
  18. package/dist/apple-splash-landscape-2732x2048.png +0 -0
  19. package/dist/apple-splash-landscape-2778x1284.png +0 -0
  20. package/dist/apple-splash-landscape-2796x1290.png +0 -0
  21. package/dist/apple-splash-landscape-2868x1320.png +0 -0
  22. package/dist/apple-splash-landscape-dark-1136x640.png +0 -0
  23. package/dist/apple-splash-landscape-dark-1334x750.png +0 -0
  24. package/dist/apple-splash-landscape-dark-2266x1488.png +0 -0
  25. package/dist/apple-splash-landscape-dark-2360x1640.png +0 -0
  26. package/dist/apple-splash-landscape-dark-2388x1668.png +0 -0
  27. package/dist/apple-splash-landscape-dark-2532x1170.png +0 -0
  28. package/dist/apple-splash-landscape-dark-2556x1179.png +0 -0
  29. package/dist/apple-splash-landscape-dark-2622x1206.png +0 -0
  30. package/dist/apple-splash-landscape-dark-2732x2048.png +0 -0
  31. package/dist/apple-splash-landscape-dark-2778x1284.png +0 -0
  32. package/dist/apple-splash-landscape-dark-2796x1290.png +0 -0
  33. package/dist/apple-splash-landscape-dark-2868x1320.png +0 -0
  34. package/dist/apple-splash-portrait-1170x2532.png +0 -0
  35. package/dist/apple-splash-portrait-1179x2556.png +0 -0
  36. package/dist/apple-splash-portrait-1206x2622.png +0 -0
  37. package/dist/apple-splash-portrait-1284x2778.png +0 -0
  38. package/dist/apple-splash-portrait-1290x2796.png +0 -0
  39. package/dist/apple-splash-portrait-1320x2868.png +0 -0
  40. package/dist/apple-splash-portrait-1488x2266.png +0 -0
  41. package/dist/apple-splash-portrait-1640x2360.png +0 -0
  42. package/dist/apple-splash-portrait-1668x2388.png +0 -0
  43. package/dist/apple-splash-portrait-2048x2732.png +0 -0
  44. package/dist/apple-splash-portrait-640x1136.png +0 -0
  45. package/dist/apple-splash-portrait-750x1334.png +0 -0
  46. package/dist/apple-splash-portrait-dark-1170x2532.png +0 -0
  47. package/dist/apple-splash-portrait-dark-1179x2556.png +0 -0
  48. package/dist/apple-splash-portrait-dark-1206x2622.png +0 -0
  49. package/dist/apple-splash-portrait-dark-1284x2778.png +0 -0
  50. package/dist/apple-splash-portrait-dark-1290x2796.png +0 -0
  51. package/dist/apple-splash-portrait-dark-1320x2868.png +0 -0
  52. package/dist/apple-splash-portrait-dark-1488x2266.png +0 -0
  53. package/dist/apple-splash-portrait-dark-1640x2360.png +0 -0
  54. package/dist/apple-splash-portrait-dark-1668x2388.png +0 -0
  55. package/dist/apple-splash-portrait-dark-2048x2732.png +0 -0
  56. package/dist/apple-splash-portrait-dark-640x1136.png +0 -0
  57. package/dist/apple-splash-portrait-dark-750x1334.png +0 -0
  58. package/dist/apple-touch-icon-180x180.png +0 -0
  59. package/dist/build.json +1 -0
  60. package/dist/favicon-dark.ico +0 -0
  61. package/dist/favicon-dark.svg +3 -0
  62. package/dist/favicon.ico +0 -0
  63. package/dist/favicon.svg +3 -0
  64. package/dist/index.html +94 -0
  65. package/dist/manifest.webmanifest +1 -0
  66. package/dist/maskable-icon-512x512.png +0 -0
  67. package/dist/pwa-192x192.png +0 -0
  68. package/dist/pwa-512x512.png +0 -0
  69. package/dist/pwa-64x64.png +0 -0
  70. package/dist/recommended-mcp/context7.png +0 -0
  71. package/dist/recommended-mcp/exa.ico +0 -0
  72. package/dist/recommended-mcp/github-dark.png +0 -0
  73. package/dist/recommended-mcp/github-light.png +0 -0
  74. package/dist/recommended-mcp/huggingface.ico +0 -0
  75. package/dist/service-worker.js +1 -0
  76. package/dist/sw.js +12 -0
  77. package/package.json +173 -5
@@ -0,0 +1 @@
1
+ {"version":"1795008594012"}
@@ -0,0 +1 @@
1
+ {"version":"b12513"}
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g transform="translate(5.325 -2.048) scale(0.819200)"><path d="M600 392L504.249 558L504.137 557.929C487.252 584.069 458.193 600 426.864 600H120L240 392H600Z" fill="#FAFAFA"/><path d="M240 392H0L199.602 46.0254C216.032 17.5463 246.411 3.25756e-05 279.29 0H466.154L240 392Z" fill="#FAFAFA"/></g>
3
+ </svg>
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g transform="translate(5.325 -2.048) scale(0.819200)"><path d="M600 392L504.249 558L504.137 557.929C487.252 584.069 458.193 600 426.864 600H120L240 392H600Z" fill="#111111"/><path d="M240 392H0L199.602 46.0254C216.032 17.5463 246.411 3.25756e-05 279.29 0H466.154L240 392Z" fill="#111111"/></g>
3
+ </svg>
@@ -0,0 +1,94 @@
1
+ <!--
2
+ This is a static build of the frontend.
3
+ It is automatically generated by the build process.
4
+ Do not edit this file directly.
5
+ To make changes, refer to the "Llama Chat" section in the README.
6
+ -->
7
+ <!doctype html>
8
+ <html lang="en">
9
+ <head>
10
+ <meta charset="utf-8" />
11
+
12
+ <link rel="icon" href="favicon.ico" sizes="48x48" />
13
+ <link rel="icon" href="favicon.svg" sizes="any" type="image/svg+xml" />
14
+
15
+ <link rel="apple-touch-icon" href="apple-touch-icon-180x180.png" />
16
+
17
+ <link rel="manifest" href="./manifest.webmanifest" />
18
+
19
+ <meta
20
+ name="viewport"
21
+ content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"
22
+ />
23
+ <link href="./_app/immutable/bundle.DIMNEksO.js" rel="modulepreload">
24
+
25
+ <link href="./_app/immutable/assets/bundle.DL4TcXwg.css" rel="stylesheet">
26
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="./apple-splash-landscape-1136x640.png">
27
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="./apple-splash-landscape-1334x750.png">
28
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 376px) and (device-height: 573px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="./apple-splash-landscape-2266x1488.png">
29
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="./apple-splash-landscape-2360x1640.png">
30
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="./apple-splash-landscape-2388x1668.png">
31
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="./apple-splash-landscape-2532x1170.png">
32
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="./apple-splash-landscape-2556x1179.png">
33
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 402px) and (device-height: 874px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="./apple-splash-landscape-2622x1206.png">
34
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="./apple-splash-landscape-2732x2048.png">
35
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="./apple-splash-landscape-2778x1284.png">
36
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="./apple-splash-landscape-2796x1290.png">
37
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 440px) and (device-height: 956px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="./apple-splash-landscape-2868x1320.png">
38
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="./apple-splash-portrait-1170x2532.png">
39
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="./apple-splash-portrait-1179x2556.png">
40
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 402px) and (device-height: 874px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="./apple-splash-portrait-1206x2622.png">
41
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="./apple-splash-portrait-1284x2778.png">
42
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="./apple-splash-portrait-1290x2796.png">
43
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 440px) and (device-height: 956px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="./apple-splash-portrait-1320x2868.png">
44
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 376px) and (device-height: 573px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="./apple-splash-portrait-1488x2266.png">
45
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="./apple-splash-portrait-1640x2360.png">
46
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="./apple-splash-portrait-1668x2388.png">
47
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="./apple-splash-portrait-2048x2732.png">
48
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="./apple-splash-portrait-640x1136.png">
49
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="./apple-splash-portrait-750x1334.png">
50
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-1136x640.png">
51
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-1334x750.png">
52
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 376px) and (device-height: 573px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2266x1488.png">
53
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2360x1640.png">
54
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2388x1668.png">
55
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2532x1170.png">
56
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2556x1179.png">
57
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 402px) and (device-height: 874px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2622x1206.png">
58
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2732x2048.png">
59
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2778x1284.png">
60
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2796x1290.png">
61
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 440px) and (device-height: 956px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape) and (prefers-color-scheme: dark)" href="./apple-splash-landscape-dark-2868x1320.png">
62
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1170x2532.png">
63
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1179x2556.png">
64
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 402px) and (device-height: 874px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1206x2622.png">
65
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1284x2778.png">
66
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1290x2796.png">
67
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 440px) and (device-height: 956px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1320x2868.png">
68
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 376px) and (device-height: 573px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1488x2266.png">
69
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1640x2360.png">
70
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-1668x2388.png">
71
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-2048x2732.png">
72
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-640x1136.png">
73
+ <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait) and (prefers-color-scheme: dark)" href="./apple-splash-portrait-dark-750x1334.png">
74
+ </head>
75
+
76
+ <body data-sveltekit-preload-data="hover">
77
+ <div style="display: contents">
78
+ <script>
79
+ {
80
+ __sveltekit_l13qak = {
81
+ base: new URL('.', location).pathname.slice(0, -1),
82
+ version: "1795008594012"
83
+ };
84
+
85
+ const element = document.currentScript.parentElement;
86
+
87
+ import("./_app/immutable/bundle.DIMNEksO.js").then((app) => {
88
+ app.start(element)
89
+ });
90
+ }
91
+ </script>
92
+ </div>
93
+ </body>
94
+ </html>
@@ -0,0 +1 @@
1
+ {"background_color":"white","description":"Local AI chat interface powered by llama.cpp","display":"standalone","icons":[{"sizes":"64x64","src":"pwa-64x64.png","type":"image/png"},{"sizes":"192x192","src":"pwa-192x192.png","type":"image/png"},{"purpose":"any","sizes":"512x512","src":"pwa-512x512.png","type":"image/png"},{"purpose":"maskable","sizes":"512x512","src":"maskable-icon-512x512.png","type":"image/png"}],"lang":"en","name":"llama-ui","scope":"./","short_name":"llama-ui","start_url":"./","theme_color":"white"}
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ globalThis.__sveltekit_l13qak={base:location.pathname.split(`/`).slice(0,-1).join(`/`),env:{},version:`1795008594012`};var e=globalThis.__sveltekit_l13qak??{},t=e.base??``,n=e.assets??t??``;new URL(`a://`);function r(e){let r=e;return r[0]===`/`&&(r=r.slice(1)),(n||t)+`/`+r}function i(e){return r(e.replace(/^\//,``))}var a=e.version,o=[{path:`_app/immutable/assets/LlamaMono.7z2dnkpH.woff2`},{path:`_app/immutable/assets/LlamaSans.C2rXtH67.woff2`},{path:`_app/immutable/bundle.DIMNEksO.js`},{path:`_app/immutable/assets/bundle.DL4TcXwg.css`}],s=[{path:`apple-splash-landscape-1136x640.png`},{path:`apple-splash-landscape-1334x750.png`},{path:`apple-splash-landscape-2266x1488.png`},{path:`apple-splash-landscape-2360x1640.png`},{path:`apple-splash-landscape-2388x1668.png`},{path:`apple-splash-landscape-2532x1170.png`},{path:`apple-splash-landscape-2556x1179.png`},{path:`apple-splash-landscape-2622x1206.png`},{path:`apple-splash-landscape-2732x2048.png`},{path:`apple-splash-landscape-2778x1284.png`},{path:`apple-splash-landscape-2796x1290.png`},{path:`apple-splash-landscape-2868x1320.png`},{path:`apple-splash-landscape-dark-1136x640.png`},{path:`apple-splash-landscape-dark-1334x750.png`},{path:`apple-splash-landscape-dark-2266x1488.png`},{path:`apple-splash-landscape-dark-2360x1640.png`},{path:`apple-splash-landscape-dark-2388x1668.png`},{path:`apple-splash-landscape-dark-2532x1170.png`},{path:`apple-splash-landscape-dark-2556x1179.png`},{path:`apple-splash-landscape-dark-2622x1206.png`},{path:`apple-splash-landscape-dark-2732x2048.png`},{path:`apple-splash-landscape-dark-2778x1284.png`},{path:`apple-splash-landscape-dark-2796x1290.png`},{path:`apple-splash-landscape-dark-2868x1320.png`},{path:`apple-splash-portrait-1170x2532.png`},{path:`apple-splash-portrait-1179x2556.png`},{path:`apple-splash-portrait-1206x2622.png`},{path:`apple-splash-portrait-1284x2778.png`},{path:`apple-splash-portrait-1290x2796.png`},{path:`apple-splash-portrait-1320x2868.png`},{path:`apple-splash-portrait-1488x2266.png`},{path:`apple-splash-portrait-1640x2360.png`},{path:`apple-splash-portrait-1668x2388.png`},{path:`apple-splash-portrait-2048x2732.png`},{path:`apple-splash-portrait-640x1136.png`},{path:`apple-splash-portrait-750x1334.png`},{path:`apple-splash-portrait-dark-1170x2532.png`},{path:`apple-splash-portrait-dark-1179x2556.png`},{path:`apple-splash-portrait-dark-1206x2622.png`},{path:`apple-splash-portrait-dark-1284x2778.png`},{path:`apple-splash-portrait-dark-1290x2796.png`},{path:`apple-splash-portrait-dark-1320x2868.png`},{path:`apple-splash-portrait-dark-1488x2266.png`},{path:`apple-splash-portrait-dark-1640x2360.png`},{path:`apple-splash-portrait-dark-1668x2388.png`},{path:`apple-splash-portrait-dark-2048x2732.png`},{path:`apple-splash-portrait-dark-640x1136.png`},{path:`apple-splash-portrait-dark-750x1334.png`},{path:`apple-touch-icon-180x180.png`},{path:`favicon-dark.ico`},{path:`favicon-dark.svg`},{path:`favicon.ico`},{path:`favicon.svg`},{path:`maskable-icon-512x512.png`},{path:`pwa-192x192.png`},{path:`pwa-512x512.png`},{path:`pwa-64x64.png`},{path:`recommended-mcp/context7.png`},{path:`recommended-mcp/exa.ico`},{path:`recommended-mcp/github-dark.png`},{path:`recommended-mcp/github-light.png`},{path:`recommended-mcp/huggingface.ico`},{path:`sw.js`}],c=globalThis.self,l=`llama-ui-${a}`,u=[`./`,`manifest.webmanifest`,`_app/version.json`,...o.map(({path:e})=>e),...s.map(({path:e})=>e).filter(e=>e!==`sw.js`)].map(e=>new URL(i(e),c.location.href).href),d=new Set(u.map(e=>new URL(e).pathname));c.addEventListener(`install`,e=>{e.waitUntil(caches.open(l).then(e=>e.addAll(u.map(e=>new Request(e,{cache:`reload`})))))}),c.addEventListener(`activate`,e=>{e.waitUntil(caches.keys().then(e=>Promise.all(e.filter(e=>e!==l).map(e=>caches.delete(e)))))}),c.addEventListener(`message`,e=>{e.data?.type===`SKIP_WAITING`&&c.skipWaiting()}),c.addEventListener(`fetch`,e=>{if(e.request.method!==`GET`)return;let t=new URL(e.request.url);t.origin===c.location.origin&&d.has(t.pathname)&&e.respondWith(caches.open(l).then(e=>e.match(t.pathname)).then(t=>t??fetch(e.request)))});
package/dist/sw.js ADDED
@@ -0,0 +1,12 @@
1
+ // Older builds registered the service worker at ./sw.js. Their update check lands here,
2
+ // so remove that worker and its caches; the reloaded page registers service-worker.js.
3
+ self.addEventListener('install', () => self.skipWaiting());
4
+ self.addEventListener('activate', (e) =>
5
+ e.waitUntil(
6
+ (async () => {
7
+ await self.registration.unregister();
8
+ for (const key of await caches.keys()) await caches.delete(key);
9
+ for (const c of await self.clients.matchAll({ type: 'window' })) c.navigate(c.url);
10
+ })()
11
+ )
12
+ );
package/package.json CHANGED
@@ -1,6 +1,174 @@
1
1
  {
2
- "name": "@ggml-org/llama-chat",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@ggml-org/llama-chat",
3
+ "version": "0.1.0",
4
+ "description": "Llama Chat, the chat app for llama.cpp. Run it with npx @ggml-org/llama-chat against any llama-server.",
5
+ "keywords": [
6
+ "llama.cpp",
7
+ "llama-server",
8
+ "llm",
9
+ "chat",
10
+ "local-ai"
11
+ ],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/ggml-org/llama.cpp.git",
16
+ "directory": "ui/apps/chat"
17
+ },
18
+ "homepage": "https://github.com/ggml-org/llama.cpp/tree/master/ui/apps/chat#readme",
19
+ "bugs": "https://github.com/ggml-org/llama.cpp/issues",
20
+ "type": "module",
21
+ "bin": {
22
+ "llama-chat": "./bin/cli.js"
23
+ },
24
+ "exports": {
25
+ "./cli": "./bin/cli.js",
26
+ "./server": "./cli/server.js",
27
+ "./dist/*": "./dist/*",
28
+ "./package.json": "./package.json"
29
+ },
30
+ "files": [
31
+ "bin",
32
+ "cli",
33
+ "dist",
34
+ "!dist/**/*.map"
35
+ ],
36
+ "engines": {
37
+ "node": ">=20"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "scripts": {
43
+ "build": "npm run build-pwa-assets && vite build",
44
+ "build-pwa-assets": "pwa-assets-generator --root . --config pwa-assets.config.ts && pwa-assets-generator --root . --config pwa-assets-dark.config.ts && node scripts/make-icons-circular.js",
45
+ "dev": "bash scripts/dev.sh",
46
+ "preview": "vite preview",
47
+ "prepare": "svelte-kit sync || echo ''",
48
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
49
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
50
+ "check:design": "node scripts/design-md.js --check",
51
+ "design:tokens": "node scripts/design-md.js",
52
+ "reset": "rm -rf .svelte-kit node_modules",
53
+ "format": "eslint --fix . && prettier --write .",
54
+ "format:files": "sh -c 'eslint --fix \"$@\" && prettier --write \"$@\"' sh",
55
+ "lint": "svelte-kit sync && prettier --check . && eslint .",
56
+ "test": "npm run test:ui -- --run && npm run test:client -- --run && npm run test:unit -- --run && npm run test:e2e",
57
+ "test:e2e": "playwright test",
58
+ "test:e2e:pwa": "playwright test tests/e2e/pwa.e2e.ts",
59
+ "demo:codegen": "playwright codegen --target=playwright-test --viewport-size=1440,900 --output=demo/recording.demo.ts http://localhost:5180/",
60
+ "demo:docs": "node demo/cli.ts docs",
61
+ "demo:pr": "node demo/cli.ts pr",
62
+ "demo:record": "playwright test --config=demo/playwright.config.ts",
63
+ "demo:traces": "node demo/cli.ts traces",
64
+ "test:client": "vitest --project=client",
65
+ "test:unit": "vitest --project=unit",
66
+ "test:unit:pwa": "vitest --project=unit --run tests/unit/pwa.spec.ts",
67
+ "test:pwa": "npm run test:unit:pwa && npm run test:e2e:pwa",
68
+ "test:ui": "vitest --project=ui",
69
+ "storybook": "svelte-kit sync && storybook dev -p 6006",
70
+ "build-storybook": "svelte-kit sync && storybook build",
71
+ "cleanup": "rm -rf .svelte-kit build node_modules test-results dist dev-dist debug-storybook.log static/pwa-*.png static/maskable-icon-*.png static/apple-touch-icon-*.png static/apple-splash-*.png static/favicon*.ico",
72
+ "start": "node bin/cli.js"
73
+ },
74
+ "devDependencies": {
75
+ "@chromatic-com/storybook": "5.5.1",
76
+ "@codemirror/commands": "6.11.1",
77
+ "@codemirror/lang-markdown": "6.5.2",
78
+ "@codemirror/language": "6.13.1",
79
+ "@codemirror/state": "6.7.6",
80
+ "@codemirror/view": "6.43.15",
81
+ "@eslint/compat": "2.1.1",
82
+ "@eslint/js": "10.0.1",
83
+ "@internationalized/date": "3.12.2",
84
+ "@lezer/highlight": "1.2.5",
85
+ "@lucide/svelte": "1.46.0",
86
+ "@modelcontextprotocol/sdk": "1.32.1",
87
+ "@playwright/test": "1.56.1",
88
+ "@storybook/addon-a11y": "10.6.6",
89
+ "@storybook/addon-docs": "10.6.6",
90
+ "@storybook/addon-mcp": "10.6.6",
91
+ "@storybook/addon-svelte-csf": "5.1.6",
92
+ "@storybook/addon-vitest": "10.6.6",
93
+ "@storybook/sveltekit": "10.6.6",
94
+ "@sveltejs/adapter-static": "4.0.1",
95
+ "@sveltejs/kit": "3.2.0",
96
+ "@sveltejs/load-config": "0.2.3",
97
+ "@sveltejs/vite-plugin-svelte": "7.3.1",
98
+ "@tailwindcss/forms": "0.5.10",
99
+ "@tailwindcss/typography": "0.5.20",
100
+ "@tailwindcss/vite": "4.3.5",
101
+ "@types/mdast": "4.0.4",
102
+ "@types/node": "24.13.0",
103
+ "@vite-pwa/assets-generator": "1.0.4",
104
+ "@vitest/browser": "4.1.12",
105
+ "@vitest/browser-playwright": "4.1.12",
106
+ "@vitest/coverage-v8": "4.1.12",
107
+ "bits-ui": "2.18.1",
108
+ "clsx": "2.1.1",
109
+ "dexie": "4.4.3",
110
+ "dompurify": "3.4.17",
111
+ "eslint": "10.14.0",
112
+ "eslint-config-prettier": "10.1.8",
113
+ "eslint-plugin-perfectionist": "^5.10.1",
114
+ "eslint-plugin-simple-import-sort": "^14.0.0",
115
+ "eslint-plugin-storybook": "10.6.6",
116
+ "eslint-plugin-svelte": "3.24.1",
117
+ "fflate": "0.8.3",
118
+ "globals": "16.5.0",
119
+ "highlight.js": "11.11.1",
120
+ "http-server": "14.1.1",
121
+ "@ggml-org/llama-brand": "https://codeload.github.com/ggml-org/llama-brand/tar.gz/f05540643c1ca2a18d732ed6491c839686da9a3a",
122
+ "mdsvex": "0.12.7",
123
+ "mermaid": "11.17.2",
124
+ "mode-watcher": "1.1.0",
125
+ "pdfjs-dist": "5.4.54",
126
+ "playwright": "1.56.1",
127
+ "prettier": "3.8.3",
128
+ "prettier-plugin-svelte": "4.1.0",
129
+ "prettier-plugin-tailwindcss": "0.8.0",
130
+ "rehype-highlight": "7.0.2",
131
+ "rehype-katex": "7.0.1",
132
+ "rehype-stringify": "10.0.1",
133
+ "remark": "15.0.1",
134
+ "remark-breaks": "4.0.0",
135
+ "remark-gfm": "4.0.1",
136
+ "remark-html": "16.0.1",
137
+ "remark-math": "6.0.0",
138
+ "remark-rehype": "11.1.2",
139
+ "sass": "1.100.0",
140
+ "storybook": "10.6.6",
141
+ "svelte": "5.57.3",
142
+ "svelte-check": "4.7.8",
143
+ "svelte-sonner": "1.1.1",
144
+ "tailwind-merge": "3.6.0",
145
+ "tailwind-variants": "3.3.1",
146
+ "tailwindcss": "4.3.5",
147
+ "tw-animate-css": "1.4.0",
148
+ "typescript": "6.0.3",
149
+ "typescript-eslint": "8.72.1",
150
+ "unified": "11.0.5",
151
+ "unist-util-visit": "5.1.0",
152
+ "uuid": "13.0.2",
153
+ "vaul-svelte": "1.0.0-next.7",
154
+ "vite": "8.3.6",
155
+ "vite-plugin-devtools-json": "1.1.2",
156
+ "vitest": "4.1.12",
157
+ "vitest-browser-svelte": "2.1.1"
158
+ },
159
+ "overrides": {
160
+ "@storybook/svelte": "10.6.6",
161
+ "cookie": "1.1.1",
162
+ "http-server": {
163
+ "html-encoding-sniffer": "6.0.0"
164
+ },
165
+ "katex": "0.19.0",
166
+ "minimatch": "11.0.5",
167
+ "postcss-selector-parser": "7.1.6",
168
+ "sharp": "0.35.5",
169
+ "valibot": "1.4.2"
170
+ },
171
+ "imports": {
172
+ "#lib/*": "./src/lib/*"
173
+ }
174
+ }