diff --git a/ui/package-lock.json b/ui/package-lock.json index 8f3e412..66191e6 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -7,14 +7,9 @@ "": { "name": "ui", "version": "0.0.1", - "dependencies": { - "@msgpack/msgpack": "^3.0.0-beta2", - "rxjs": "^7.8.1", - "wasmrs-js": "file:../../wasmrs-js", - "wick-js": "file:../../wick-js" - }, "devDependencies": { - "@bjorn3/browser_wasi_shim": "file:../../browser_wasi_shim", + "@candlecorp/wick": "^0.2.1", + "@msgpack/msgpack": "^3.0.0-beta2", "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/adapter-static": "^2.0.3", "@sveltejs/kit": "^1.20.4", @@ -33,6 +28,7 @@ "postcss-load-config": "^4.0.1", "prettier": "^2.8.0", "prettier-plugin-svelte": "^2.10.1", + "rxjs": "^7.8.1", "svelte": "^4.0.5", "svelte-check": "^3.4.3", "tailwindcss": "^3.3.2", @@ -40,13 +36,14 @@ "typescript": "^5.2.2", "vite": "^4.4.2", "vite-plugin-mkcert": "^1.16.0", - "vite-plugin-node-polyfills": "^0.15.0" + "vite-plugin-node-polyfills": "^0.15.0", + "wasmrs-js": "^0.2.4" } }, "../../browser_wasi_shim": { - "name": "@bjorn3/browser_wasi_shim", - "version": "0.2.15", - "dev": true, + "name": "@candlecorp/browser_wasi_shim", + "version": "0.2.16", + "extraneous": true, "license": "MIT OR Apache-2.0", "devDependencies": { "@playwright/test": "^1.38.1", @@ -63,55 +60,23 @@ "typescript": "^4.9.5" } }, - "../../wasmrs-js": { - "license": "Apache-2.0", - "dependencies": { - "@bjorn3/browser_wasi_shim": "file:../browser_wasi_shim", - "@candlecorp/rsocket-adapter-rxjs": "^0.0.1", - "debug": "^4.3.4", - "rsocket-core": "^1.0.0-alpha.3", - "typescript": "^5.2.2" - }, - "devDependencies": { - "@jest/globals": "^29.7.0", - "@msgpack/msgpack": "^3.0.0-beta2", - "@rollup/plugin-commonjs": "^25.0.5", - "@rollup/plugin-node-resolve": "^15.2.2", - "@rollup/plugin-typescript": "^11.1.5", - "@types/debug": "^4.1.9", - "@types/jest": "^27.0.3", - "@types/node": "^20.7.2", - "@typescript-eslint/eslint-plugin": "^6.7.3", - "@typescript-eslint/parser": "^6.7.3", - "eslint": "~8.5.0", - "eslint-plugin-import": "~2.25.3", - "eslint-plugin-prettier": "^4.0.0", - "jest": "^29.7.0", - "jest-config": "^29.7.0", - "jest-runner-eslint": "^2.1.2", - "prettier": "^2.5.1", - "rollup": "^4.0.0", - "rsocket-messaging": "^1.0.0-alpha.3", - "rxjs": "^7.8.1", - "ts-jest": "^29.1.1", - "web-worker": "^1.2.0" - } - }, "../../wick-js": { + "name": "@candlecorp/wick", + "version": "0.1.1", + "extraneous": true, "license": "Apache-2.0", "dependencies": { - "@bjorn3/browser_wasi_shim": "file:../browser_wasi_shim", "@candlecorp/rsocket-adapter-rxjs": "^0.0.1", "@msgpack/msgpack": "^3.0.0-beta2", - "@types/debug": "^4.1.9", "debug": "^4.3.4", "rsocket-core": "^1.0.0-alpha.3", "rsocket-messaging": "^1.0.0-alpha.3", "rxjs": "^7.8.1", - "wasmrs-js": "file:../wasmrs-js" + "wasmrs-js": "^0.2.3" }, "devDependencies": { "@jest/globals": "^29.7.0", + "@types/debug": "^4.1.9", "@types/jest": "^27.0.3", "@types/node": "^20.7.2", "@typescript-eslint/eslint-plugin": "^6.7.3", @@ -126,6 +91,9 @@ "ts-jest": "^29.1.1", "ts-loader": "^9.4.4", "typescript": "~4.5.4" + }, + "engines": { + "node": ">=0.19.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -162,9 +130,40 @@ "node": ">=6.0.0" } }, - "node_modules/@bjorn3/browser_wasi_shim": { - "resolved": "../../browser_wasi_shim", - "link": true + "node_modules/@candlecorp/browser_wasi_shim": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/@candlecorp/browser_wasi_shim/-/browser_wasi_shim-0.2.16.tgz", + "integrity": "sha512-aWH+TNqN0RkPbazUPyl3R6FMlTR8BlFqT7z+gYmGJyKI1TGRqpQqRXgPHTphiOumKkPmXNY5di0SE2vJ7taWpQ==", + "dev": true + }, + "node_modules/@candlecorp/rsocket-adapter-rxjs": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@candlecorp/rsocket-adapter-rxjs/-/rsocket-adapter-rxjs-0.0.1.tgz", + "integrity": "sha512-l1HU/p8flhMokEB4kkGzamSpVRstVFwQzmsWOLDwT6SAl2L+aqZuV2Id0yB04I1hpaBeg6JiYzJmnr17w2uCSA==", + "dev": true, + "dependencies": { + "rsocket-core": "^1.0.0-alpha.3", + "rsocket-messaging": "^1.0.0-alpha.3", + "rxjs": "^7.4.0" + } + }, + "node_modules/@candlecorp/wick": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@candlecorp/wick/-/wick-0.2.1.tgz", + "integrity": "sha512-z66WJDw/thYX20sBoBtqPE7ozm51aGWSFiA6NsHv3PQ9UaAXSyhfavA5BmRp7Yyjy/RXPA/Hl38Ev0BprZUm+w==", + "dev": true, + "dependencies": { + "@candlecorp/rsocket-adapter-rxjs": "^0.0.1", + "@msgpack/msgpack": "^3.0.0-beta2", + "debug": "^4.3.4", + "rsocket-core": "^1.0.0-alpha.3", + "rsocket-messaging": "^1.0.0-alpha.3", + "rxjs": "^7.8.1", + "wasmrs-js": "^0.2.4" + }, + "engines": { + "node": ">=0.19.0" + } }, "node_modules/@esbuild/android-arm": { "version": "0.18.20", @@ -684,6 +683,7 @@ "version": "3.0.0-beta2", "resolved": "https://registry.npmjs.org/@msgpack/msgpack/-/msgpack-3.0.0-beta2.tgz", "integrity": "sha512-y+l1PNV0XDyY8sM3YtuMLK5vE3/hkfId+Do8pLo/OPxfxuFAUwcGz3oiiUuV46/aBpwTzZ+mRWVMtlSKbradhw==", + "dev": true, "engines": { "node": ">= 14" } @@ -4517,6 +4517,31 @@ "fsevents": "~2.3.2" } }, + "node_modules/rsocket-composite-metadata": { + "version": "1.0.0-alpha.3", + "resolved": "https://registry.npmjs.org/rsocket-composite-metadata/-/rsocket-composite-metadata-1.0.0-alpha.3.tgz", + "integrity": "sha512-o+msmc1pXnejLw4TDgMllynS9/L3TGJM25kqedTxqU6wVF9jnTA95w7T4scGwwX6qiAryT90HQGUaT+An44X3w==", + "dev": true, + "dependencies": { + "rsocket-core": "^1.0.0-alpha.3" + } + }, + "node_modules/rsocket-core": { + "version": "1.0.0-alpha.3", + "resolved": "https://registry.npmjs.org/rsocket-core/-/rsocket-core-1.0.0-alpha.3.tgz", + "integrity": "sha512-BzIe2w8dFJlUS5N9fGUNRkxL19kd64bxbXsT11wj7isLfKkPZeNXisB2p/LWvSjFzWStnpOiScZ0g3/8ROE0pw==", + "dev": true + }, + "node_modules/rsocket-messaging": { + "version": "1.0.0-alpha.3", + "resolved": "https://registry.npmjs.org/rsocket-messaging/-/rsocket-messaging-1.0.0-alpha.3.tgz", + "integrity": "sha512-fr/BDCLI4DMyzVI5hHsABVpKlKxGX8rbfdgcXgY6VKuBlDIX0oqGApqLdSq0YfvNpgjlpuOXYj4vlhLku959Yw==", + "dev": true, + "dependencies": { + "rsocket-composite-metadata": "^1.0.0-alpha.3", + "rsocket-core": "^1.0.0-alpha.3" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -4544,6 +4569,7 @@ "version": "7.8.1", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dev": true, "dependencies": { "tslib": "^2.1.0" } @@ -5268,7 +5294,8 @@ "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true }, "node_modules/tty-browserify": { "version": "0.0.1", @@ -5517,8 +5544,25 @@ "dev": true }, "node_modules/wasmrs-js": { - "resolved": "../../wasmrs-js", - "link": true + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/wasmrs-js/-/wasmrs-js-0.2.4.tgz", + "integrity": "sha512-X4rl5fUPgCb/+uvJ8Je2XOsMho0G0CDvf2IQ4rSNupPpU6RoFcERre59d943X6JNgqVwIJSRgUW7H9VRMlcZ/w==", + "dev": true, + "dependencies": { + "@candlecorp/browser_wasi_shim": "^0.2.16", + "debug": "^4.3.4", + "rsocket-core": "^1.0.0-alpha.3", + "web-worker": "^1.2.0" + }, + "engines": { + "node": ">=0.19.0" + } + }, + "node_modules/web-worker": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", + "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==", + "dev": true }, "node_modules/webidl-conversions": { "version": "3.0.1", @@ -5570,10 +5614,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/wick-js": { - "resolved": "../../wick-js", - "link": true - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", diff --git a/ui/package.json b/ui/package.json index d034698..48e0a84 100644 --- a/ui/package.json +++ b/ui/package.json @@ -12,7 +12,8 @@ "format": "prettier --plugin-search-dir . --write ." }, "devDependencies": { - "@bjorn3/browser_wasi_shim": "file:../../browser_wasi_shim", + "@candlecorp/wick": "^0.2.1", + "@msgpack/msgpack": "^3.0.0-beta2", "@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/adapter-static": "^2.0.3", "@sveltejs/kit": "^1.20.4", @@ -31,6 +32,7 @@ "postcss-load-config": "^4.0.1", "prettier": "^2.8.0", "prettier-plugin-svelte": "^2.10.1", + "rxjs": "^7.8.1", "svelte": "^4.0.5", "svelte-check": "^3.4.3", "tailwindcss": "^3.3.2", @@ -38,13 +40,8 @@ "typescript": "^5.2.2", "vite": "^4.4.2", "vite-plugin-mkcert": "^1.16.0", - "vite-plugin-node-polyfills": "^0.15.0" + "vite-plugin-node-polyfills": "^0.15.0", + "wasmrs-js": "^0.2.4" }, - "type": "module", - "dependencies": { - "@msgpack/msgpack": "^3.0.0-beta2", - "rxjs": "^7.8.1", - "wasmrs-js": "file:../../wasmrs-js", - "wick-js": "file:../../wick-js" - } + "type": "module" } diff --git a/ui/src/components/BundleDownload.svelte b/ui/src/components/BundleDownload.svelte index 074cb66..dbbda74 100644 --- a/ui/src/components/BundleDownload.svelte +++ b/ui/src/components/BundleDownload.svelte @@ -36,9 +36,7 @@ async function startDownload() { downloading = true; - console.log({ selectedModel: selectedBundle }); const bundle = bundles[selectedBundle]; - console.log({ files: bundle }); const path = selectedBundle; downloadPercentage.set(Object.fromEntries(bundle.files.map((entry) => [entry.path, 0]))); for (let i = 0; i < bundle.files.length; i++) { @@ -78,15 +76,14 @@