* ui: generate DESIGN.md's token sections from the CSS Add scripts/design-md.js in ui/apps/chat (npm run design:tokens, and npm run check:design in CI), which writes the colors, typography and rounded sections of DESIGN.md's front matter from llama-brand's colors.css and Llama UI's primitives, semantic tokens and font stacks. The front matter had drifted: it gave Matte's surfaces as the light base and system-ui for every text role. Twins are now written wherever a token resolves differently in dark mode (-dark) or in Matte (-matte). Describe the floating panel's rim as the CSS draws it, on the border, and say which parts of DESIGN.md are generated and which are kept by hand. Assisted-by: Claude (Opus 5.5 Medium) * ui: say the Storybooks show accessibility findings without enforcing them Both Storybooks keep a11y test 'todo': under 'error' 98 of the stories fail, most on colour contrast of the muted foreground and on nested interactive controls, which need design changes. Reword the Uses tile and record the reason next to the setting. Assisted-by: Claude (Opus 5.5 Medium) * ui: list every Llama Chat group in the Introduction's Sections figure The figure said it was in sidebar order but left out Forms, Actions, Badges, Misc, Servers and PWA. Its list moves to sections.ts, and a unit test checks it against storySort in .storybook/preview.ts, which has to stay inline there because Storybook parses it as written. Assisted-by: Claude (Opus 5.5 Medium) * ui: load the package's Llama Mono in both Storybooks The library's Storybook declared Llama Mono a second time from tests/stories/brand/fonts, a 72276-byte file that differs from the 76896-byte one the package ships, so its pages showed a Llama Mono that does not ship. Drop both Storybooks' copies: theme.css already loads the package's font. Assisted-by: Claude (Opus 5.5 Medium) * ui: take Llama Chat's shared Storybook helpers from Llama UI Llama Chat kept copies of the Editorial, Chapters, StateGallery, StateGalleryItem, svx.d.ts and docs.css that live with the library's stories. Its stories now import them as $llama-ui-stories/..., an alias its Storybook config and tsconfig.json map onto ui/lib/ui/tests/stories, the way it already compiles the library from source; docs.css and svx.d.ts are referenced by path. The library's Editorial takes Llama Chat's newer list numbering. An empty svelte.config.js next to the stories keeps Llama Chat's svelte-check from loading the library's vite.config.ts, as src/svelte.config.js does for the sources. Assisted-by: Claude (Opus 5.5 Medium) * ui: pin the library's Storybook to Llama Chat's versions ui/lib/ui used ^10.6.2 with @storybook/addon-mcp at 10.6.2, while ui/apps/chat pins 10.6.6, so one tree had two Storybooks. Pin the library's Storybook packages exactly to Llama Chat's: 10.6.6, addon-svelte-csf 5.1.6 and @chromatic-com/storybook 5.5.1. Assisted-by: Claude (Opus 5.5 Medium)
138 lines
5.0 KiB
JSON
138 lines
5.0 KiB
JSON
{
|
|
"name": "@ggml-org/llama-chat",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "npm run build-pwa-assets && vite build",
|
|
"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",
|
|
"dev": "bash scripts/dev.sh",
|
|
"preview": "vite preview",
|
|
"prepare": "svelte-kit sync || echo ''",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
"check:design": "node scripts/design-md.js --check",
|
|
"design:tokens": "node scripts/design-md.js",
|
|
"reset": "rm -rf .svelte-kit node_modules",
|
|
"format": "eslint --fix . && prettier --write .",
|
|
"format:files": "sh -c 'eslint --fix \"$@\" && prettier --write \"$@\"' sh",
|
|
"lint": "svelte-kit sync && prettier --check . && eslint .",
|
|
"test": "npm run test:ui -- --run && npm run test:client -- --run && npm run test:unit -- --run && npm run test:e2e",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:pwa": "playwright test tests/e2e/pwa.e2e.ts",
|
|
"demo:codegen": "playwright codegen --target=playwright-test --viewport-size=1440,900 --output=demo/recording.demo.ts http://localhost:5180/",
|
|
"demo:docs": "node demo/cli.ts docs",
|
|
"demo:pr": "node demo/cli.ts pr",
|
|
"demo:record": "playwright test --config=demo/playwright.config.ts",
|
|
"demo:traces": "node demo/cli.ts traces",
|
|
"test:client": "vitest --project=client",
|
|
"test:unit": "vitest --project=unit",
|
|
"test:unit:pwa": "vitest --project=unit --run tests/unit/pwa.spec.ts",
|
|
"test:pwa": "npm run test:unit:pwa && npm run test:e2e:pwa",
|
|
"test:ui": "vitest --project=ui",
|
|
"storybook": "svelte-kit sync && storybook dev -p 6006",
|
|
"build-storybook": "svelte-kit sync && storybook build",
|
|
"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"
|
|
},
|
|
"devDependencies": {
|
|
"@chromatic-com/storybook": "5.5.1",
|
|
"@codemirror/commands": "6.11.1",
|
|
"@codemirror/lang-markdown": "6.5.2",
|
|
"@codemirror/language": "6.13.1",
|
|
"@codemirror/state": "6.7.6",
|
|
"@codemirror/view": "6.43.15",
|
|
"@eslint/compat": "2.1.1",
|
|
"@eslint/js": "10.0.1",
|
|
"@internationalized/date": "3.12.2",
|
|
"@lezer/highlight": "1.2.5",
|
|
"@lucide/svelte": "1.46.0",
|
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
"@playwright/test": "1.56.1",
|
|
"@storybook/addon-a11y": "10.6.6",
|
|
"@storybook/addon-docs": "10.6.6",
|
|
"@storybook/addon-mcp": "10.6.6",
|
|
"@storybook/addon-svelte-csf": "5.1.6",
|
|
"@storybook/addon-vitest": "10.6.6",
|
|
"@storybook/sveltekit": "10.6.6",
|
|
"@sveltejs/adapter-static": "4.0.1",
|
|
"@sveltejs/kit": "3.2.0",
|
|
"@sveltejs/load-config": "0.2.3",
|
|
"@sveltejs/vite-plugin-svelte": "7.3.1",
|
|
"@tailwindcss/forms": "0.5.10",
|
|
"@tailwindcss/typography": "0.5.20",
|
|
"@tailwindcss/vite": "4.3.5",
|
|
"@types/mdast": "4.0.4",
|
|
"@types/node": "24.13.0",
|
|
"@vite-pwa/assets-generator": "1.0.4",
|
|
"@vitest/browser": "4.1.12",
|
|
"@vitest/browser-playwright": "4.1.12",
|
|
"@vitest/coverage-v8": "4.1.12",
|
|
"bits-ui": "2.18.1",
|
|
"clsx": "2.1.1",
|
|
"dexie": "4.4.3",
|
|
"dompurify": "3.4.17",
|
|
"eslint": "10.14.0",
|
|
"eslint-config-prettier": "10.1.8",
|
|
"eslint-plugin-perfectionist": "^5.10.1",
|
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
"eslint-plugin-storybook": "10.6.6",
|
|
"eslint-plugin-svelte": "3.24.1",
|
|
"fflate": "0.8.3",
|
|
"globals": "16.5.0",
|
|
"highlight.js": "11.11.1",
|
|
"http-server": "14.1.1",
|
|
"@ggml-org/llama-brand": "https://codeload.github.com/ggml-org/llama-brand/tar.gz/f05540643c1ca2a18d732ed6491c839686da9a3a",
|
|
"mdsvex": "0.12.7",
|
|
"mermaid": "11.17.2",
|
|
"mode-watcher": "1.1.0",
|
|
"pdfjs-dist": "5.4.54",
|
|
"playwright": "1.56.1",
|
|
"prettier": "3.8.3",
|
|
"prettier-plugin-svelte": "4.1.0",
|
|
"prettier-plugin-tailwindcss": "0.8.0",
|
|
"rehype-highlight": "7.0.2",
|
|
"rehype-katex": "7.0.1",
|
|
"rehype-stringify": "10.0.1",
|
|
"remark": "15.0.1",
|
|
"remark-breaks": "4.0.0",
|
|
"remark-gfm": "4.0.1",
|
|
"remark-html": "16.0.1",
|
|
"remark-math": "6.0.0",
|
|
"remark-rehype": "11.1.2",
|
|
"sass": "1.100.0",
|
|
"storybook": "10.6.6",
|
|
"svelte": "5.57.3",
|
|
"svelte-check": "4.7.8",
|
|
"svelte-sonner": "1.1.1",
|
|
"tailwind-merge": "3.6.0",
|
|
"tailwind-variants": "3.3.1",
|
|
"tailwindcss": "4.3.5",
|
|
"tw-animate-css": "1.4.0",
|
|
"typescript": "6.0.3",
|
|
"typescript-eslint": "8.72.1",
|
|
"unified": "11.0.5",
|
|
"unist-util-visit": "5.1.0",
|
|
"uuid": "13.0.2",
|
|
"vaul-svelte": "1.0.0-next.7",
|
|
"vite": "8.3.6",
|
|
"vite-plugin-devtools-json": "1.1.2",
|
|
"vitest": "4.1.12",
|
|
"vitest-browser-svelte": "2.1.1"
|
|
},
|
|
"overrides": {
|
|
"@storybook/svelte": "10.6.6",
|
|
"cookie": "1.1.1",
|
|
"http-server": {
|
|
"html-encoding-sniffer": "6.0.0"
|
|
},
|
|
"katex": "0.19.0",
|
|
"minimatch": "11.0.5",
|
|
"postcss-selector-parser": "7.1.6",
|
|
"sharp": "0.35.5",
|
|
"valibot": "1.4.2"
|
|
},
|
|
"imports": {
|
|
"#lib/*": "./src/lib/*"
|
|
}
|
|
}
|