From 6d072448e3e2c3e644460dcda7f90e825a18771d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 14 Feb 2026 17:45:21 +0000 Subject: [PATCH] Fix torch-lock init command and update landing page instructions - Fix multiple syntax errors in `src/lib.mjs` (redundant declarations, broken loops, missing imports). - Fix syntax error in `src/dashboard.mjs` (invalid catch block). - Remove redundant local function definitions in `src/lib.mjs` in favor of imports from `src/torch-config.mjs` and `src/utils.mjs`. - Update `landing/index.html` installation command to include `npx torch-lock init` step. - Verify `torch-lock init` works correctly. - Ensure all tests pass and linting is clean for `src/lib.mjs`. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- landing/index.html | 2 +- src/dashboard.mjs | 2 - src/lib.mjs | 287 ++------------------------------------------- 3 files changed, 10 insertions(+), 281 deletions(-) diff --git a/landing/index.html b/landing/index.html index 81a36e0..6fc93f9 100644 --- a/landing/index.html +++ b/landing/index.html @@ -537,7 +537,7 @@

Install from GitHub tarball

- npm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz + npm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz && npx torch-lock init