-
-
Notifications
You must be signed in to change notification settings - Fork 0
perf: cut dist size 56MB->8MB, dedupe hardware-probe fetches via React Query #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e99ea2e
perf: cut production dist from 56MB to ~8MB, trim install footprint
tonythethompson 84228a2
perf: dedupe hardware-probe fetches and migrate KB-status polling to …
tonythethompson 9c2f7cb
fix: Harden index.html Cache-Control
qodo-code-review[bot] 13ddfd7
fix: address PR review findings (stale VRAM probe, cache scope, retry…
tonythethompson 1fdad67
fix: cover remaining hf-token failure paths (clear DELETE, error stat…
tonythethompson 9849702
fix: tighten hash-match regex, stop double-fetching probe when a prop…
tonythethompson ccf91c4
Merge branch 'main' into perf/vite-bundle-size
tonythethompson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,116 +1,118 @@ | ||
| { | ||
| "name": "olive-studio", | ||
| "private": true, | ||
| "version": "0.2.0", | ||
| "license": "MIT", | ||
| "description": "GUI for Microsoft Olive model optimization — runs locally, no cloud required", | ||
| "type": "module", | ||
| "bin": { | ||
| "olive-studio": "./bin/cli.js" | ||
| }, | ||
| "files": [ | ||
| "dist/", | ||
| "bin/" | ||
| ], | ||
| "packageManager": "pnpm@11.17.0", | ||
| "engines": { | ||
| "node": ">=22.16" | ||
| }, | ||
| "scripts": { | ||
| "preinstall": "node -e \"if (!/pnpm/.test(process.env.npm_execpath || \\\"\\\")) { console.error('Use pnpm install, not npm install'); process.exit(1); }\"", | ||
| "dev": "tsx server.ts", | ||
| "generate:recipes": "node scripts/generate-olive-recipes-catalog.mjs", | ||
| "build": "vite build && esbuild server.ts --bundle --platform=node --format=esm --packages=external --sourcemap --outfile=dist/server.mjs", | ||
| "start": "node dist/server.mjs", | ||
| "clean": "rm -rf dist server.js dist/server.cjs dist/server.mjs", | ||
| "test": "vitest run", | ||
| "test:coverage": "vitest run --coverage", | ||
| "test:coverage:threshold": "vitest run --coverage --coverage.thresholds.lines=90 --coverage.thresholds.statements=88 --coverage.thresholds.branches=80 --coverage.thresholds.functions=85 --coverage.thresholds.perFile=true", | ||
| "test:server": "vitest run --config vitest.server.config.ts", | ||
| "test:integration": "vitest run --config vitest.integration.config.ts", | ||
| "test:component": "vitest run --config vitest.component.config.ts", | ||
| "test:watch": "vitest", | ||
| "lint": "tsc --noEmit && eslint", | ||
| "lint:quick": "oxlint --import-plugin src/", | ||
| "validate:recipe": "tsx scripts/validate-recipe-builder.ts", | ||
| "a11y:scan": "python tools/a11y-scan.py src", | ||
| "eslint": "eslint --max-warnings 20 src/ server.ts", | ||
| "format": "prettier --write \"src/**/*.{ts,tsx}\"", | ||
| "format:check": "prettier --check \"src/**/*.{ts,tsx}\"", | ||
| "deepcheck": "tsc --noEmit && prettier --check \"src/**/*.{ts,tsx}\" && eslint", | ||
| "storybook": "storybook dev -p 6006", | ||
| "build-storybook": "storybook build -o storybook-static", | ||
| "tauri": "tauri", | ||
| "tauri:dev": "tauri dev", | ||
| "tauri:build": "tauri build" | ||
| }, | ||
| "dependencies": { | ||
| "@google/genai": "^2.15.0", | ||
| "@huggingface/transformers": "^4.2.0", | ||
| "@openai/codex-sdk": "^0.145.0", | ||
| "@radix-ui/react-accordion": "^1.2.20", | ||
| "@radix-ui/react-select": "^2.2.6", | ||
| "@radix-ui/react-slider": "^1.3.6", | ||
| "@radix-ui/react-switch": "^1.3.7", | ||
| "@radix-ui/react-tabs": "^1.1.21", | ||
| "@radix-ui/react-tooltip": "^1.2.16", | ||
| "@tailwindcss/vite": "^4.3.3", | ||
| "@tanstack/react-query": "^5.101.4", | ||
| "@tauri-apps/api": "^2.11.1", | ||
| "@tauri-apps/plugin-shell": "^2.3.5", | ||
| "clsx": "^2.1.1", | ||
| "dotenv": "^17.4.2", | ||
| "express": "^5.2.1", | ||
| "express-rate-limit": "^8.6.1", | ||
| "jszip": "^3.10.1", | ||
| "lucide-react": "^1.27.0", | ||
| "motion": "^12.43.0", | ||
| "onnxruntime-web": "^1.27.0", | ||
| "react": "^19.2.8", | ||
| "react-dom": "^19.2.8", | ||
| "recharts": "^3.8.1", | ||
| "tailwind-merge": "^3.6.0", | ||
| "uuid": "^14.0.1", | ||
| "zustand": "^5.0.14" | ||
| }, | ||
| "devDependencies": { | ||
| "@commitlint/cli": "^21.2.1", | ||
| "@commitlint/config-conventional": "^21.2.0", | ||
| "@playwright/test": "^1.61.1", | ||
| "@storybook/addon-essentials": "^8.6.18", | ||
| "@storybook/react": "^8.6.18", | ||
| "@storybook/react-vite": "^8.6.18", | ||
| "@storybook/test": "^8.6.18", | ||
| "@tauri-apps/cli": "^2.11.4", | ||
| "@testing-library/react": "^16.3.2", | ||
| "@testing-library/user-event": "^14.6.1", | ||
| "@types/express": "^5.0.6", | ||
| "@types/node": "^26.1.2", | ||
| "@types/react": "^19.2.17", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@typescript-eslint/eslint-plugin": "^8.65.0", | ||
| "@typescript-eslint/parser": "^8.65.0", | ||
| "@vitejs/plugin-react": "6.0.5", | ||
| "@vitest/coverage-v8": "^4.1.10", | ||
| "@webgpu/types": "^0.1.71", | ||
| "autoprefixer": "^10.5.4", | ||
| "esbuild": "^0.28.1", | ||
| "eslint": "^9.39.5", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-react-hooks": "^7.1.1", | ||
| "fast-check": "^3.23.2", | ||
| "jsdom": "^30.0.1", | ||
| "oxlint": "^1.75.0", | ||
| "prettier": "^3.9.6", | ||
| "rollup-plugin-visualizer": "^7.0.1", | ||
| "storybook": "^8.6.18", | ||
| "tailwindcss": "^4.3.3", | ||
| "tsx": "^4.22.4", | ||
| "typegpu": "^0.11.9", | ||
| "typescript": "~6.0.3", | ||
| "unplugin-typegpu": "^0.11.6", | ||
| "vite": "^8.2.0", | ||
| "vite-plugin-compression": "^0.5.1", | ||
| "vitest": "^4.1.10" | ||
| } | ||
| } | ||
| { | ||
| "name": "olive-studio", | ||
| "private": true, | ||
| "version": "0.2.0", | ||
| "license": "MIT", | ||
| "description": "GUI for Microsoft Olive model optimization — runs locally, no cloud required", | ||
| "type": "module", | ||
| "bin": { | ||
| "olive-studio": "./bin/cli.js" | ||
| }, | ||
| "files": [ | ||
| "dist/", | ||
| "bin/" | ||
| ], | ||
| "packageManager": "pnpm@11.17.0", | ||
| "engines": { | ||
| "node": ">=22.16" | ||
| }, | ||
| "scripts": { | ||
| "preinstall": "node -e \"if (!/pnpm/.test(process.env.npm_execpath || \\\"\\\")) { console.error('Use pnpm install, not npm install'); process.exit(1); }\"", | ||
| "dev": "tsx server.ts", | ||
| "generate:recipes": "node scripts/generate-olive-recipes-catalog.mjs", | ||
| "build": "vite build && esbuild server.ts --bundle --platform=node --format=esm --packages=external --sourcemap --outfile=dist/server.mjs", | ||
| "start": "node dist/server.mjs", | ||
| "clean": "rm -rf dist server.js dist/server.cjs dist/server.mjs", | ||
| "test": "vitest run", | ||
| "test:coverage": "vitest run --coverage", | ||
| "test:coverage:threshold": "vitest run --coverage --coverage.thresholds.lines=90 --coverage.thresholds.statements=88 --coverage.thresholds.branches=80 --coverage.thresholds.functions=85 --coverage.thresholds.perFile=true", | ||
| "test:server": "vitest run --config vitest.server.config.ts", | ||
| "test:integration": "vitest run --config vitest.integration.config.ts", | ||
| "test:component": "vitest run --config vitest.component.config.ts", | ||
| "test:watch": "vitest", | ||
| "lint": "tsc --noEmit && eslint", | ||
| "lint:quick": "oxlint --import-plugin src/", | ||
| "validate:recipe": "tsx scripts/validate-recipe-builder.ts", | ||
| "a11y:scan": "python tools/a11y-scan.py src", | ||
| "eslint": "eslint --max-warnings 20 src/ server.ts", | ||
| "format": "prettier --write \"src/**/*.{ts,tsx}\"", | ||
| "format:check": "prettier --check \"src/**/*.{ts,tsx}\"", | ||
| "deepcheck": "tsc --noEmit && prettier --check \"src/**/*.{ts,tsx}\" && eslint", | ||
| "storybook": "storybook dev -p 6006", | ||
| "build-storybook": "storybook build -o storybook-static", | ||
| "tauri": "tauri", | ||
| "tauri:dev": "tauri dev", | ||
| "tauri:build": "tauri build" | ||
| }, | ||
| "dependencies": { | ||
| "@google/genai": "^2.15.0", | ||
| "@huggingface/transformers": "^4.2.0", | ||
| "@radix-ui/react-accordion": "^1.2.20", | ||
| "@radix-ui/react-select": "^2.2.6", | ||
| "@radix-ui/react-slider": "^1.3.6", | ||
| "@radix-ui/react-switch": "^1.3.7", | ||
| "@radix-ui/react-tabs": "^1.1.21", | ||
| "@radix-ui/react-tooltip": "^1.2.16", | ||
| "@tailwindcss/vite": "^4.3.3", | ||
| "@tanstack/react-query": "^5.101.4", | ||
| "@tauri-apps/api": "^2.11.1", | ||
| "@tauri-apps/plugin-shell": "^2.3.5", | ||
| "clsx": "^2.1.1", | ||
| "dotenv": "^17.4.2", | ||
| "express": "^5.2.1", | ||
| "express-rate-limit": "^8.6.1", | ||
| "express-static-gzip": "^3.0.1", | ||
| "jszip": "^3.10.1", | ||
| "lucide-react": "^1.27.0", | ||
| "motion": "^12.43.0", | ||
| "onnxruntime-web": "^1.27.0", | ||
| "react": "^19.2.8", | ||
| "react-dom": "^19.2.8", | ||
| "tailwind-merge": "^3.6.0", | ||
| "uuid": "^14.0.1", | ||
| "zustand": "^5.0.14" | ||
| }, | ||
| "optionalDependencies": { | ||
| "@openai/codex-sdk": "^0.145.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@commitlint/cli": "^21.2.1", | ||
| "@commitlint/config-conventional": "^21.2.0", | ||
| "@playwright/test": "^1.61.1", | ||
| "@storybook/addon-essentials": "^8.6.18", | ||
| "@storybook/react": "^8.6.18", | ||
| "@storybook/react-vite": "^8.6.18", | ||
| "@storybook/test": "^8.6.18", | ||
| "@tauri-apps/cli": "^2.11.4", | ||
| "@testing-library/react": "^16.3.2", | ||
| "@testing-library/user-event": "^14.6.1", | ||
| "@types/express": "^5.0.6", | ||
| "@types/node": "^26.1.2", | ||
| "@types/react": "^19.2.17", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@typescript-eslint/eslint-plugin": "^8.65.0", | ||
| "@typescript-eslint/parser": "^8.65.0", | ||
| "@vitejs/plugin-react": "6.0.5", | ||
| "@vitest/coverage-v8": "^4.1.10", | ||
| "@webgpu/types": "^0.1.71", | ||
| "autoprefixer": "^10.5.4", | ||
| "esbuild": "^0.28.1", | ||
| "eslint": "^9.39.5", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-react-hooks": "^7.1.1", | ||
| "fast-check": "^3.23.2", | ||
| "jsdom": "^30.0.1", | ||
| "oxlint": "^1.75.0", | ||
| "prettier": "^3.9.6", | ||
| "rollup-plugin-visualizer": "^7.0.1", | ||
| "storybook": "^8.6.18", | ||
| "tailwindcss": "^4.3.3", | ||
| "tsx": "^4.22.4", | ||
| "typegpu": "^0.11.9", | ||
| "typescript": "~6.0.3", | ||
| "unplugin-typegpu": "^0.11.6", | ||
| "vite": "^8.2.0", | ||
| "vite-plugin-compression": "^0.5.1", | ||
| "vitest": "^4.1.10" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.