From bc84ae7bdf047f020e763aeabc6acf5d361e6049 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Tue, 10 Dec 2024 11:57:19 -0800 Subject: [PATCH] codebuff: 1.0.99 -> 1.0.119 and rename from manicode --- .../codebuff}/package-lock.json | 76 +++++++++---------- .../{ma/manicode => co/codebuff}/package.nix | 16 ++-- .../{ma/manicode => co/codebuff}/update.sh | 6 +- pkgs/top-level/aliases.nix | 1 + 4 files changed, 50 insertions(+), 49 deletions(-) rename pkgs/by-name/{ma/manicode => co/codebuff}/package-lock.json (98%) rename pkgs/by-name/{ma/manicode => co/codebuff}/package.nix (54%) rename pkgs/by-name/{ma/manicode => co/codebuff}/update.sh (63%) diff --git a/pkgs/by-name/ma/manicode/package-lock.json b/pkgs/by-name/co/codebuff/package-lock.json similarity index 98% rename from pkgs/by-name/ma/manicode/package-lock.json rename to pkgs/by-name/co/codebuff/package-lock.json index a0af8d82c4f5d..f39bb8727afd9 100644 --- a/pkgs/by-name/ma/manicode/package-lock.json +++ b/pkgs/by-name/co/codebuff/package-lock.json @@ -1,11 +1,11 @@ { - "name": "manicode", + "name": "codebuff", "lockfileVersion": 3, "requires": true, "packages": { "": { "dependencies": { - "manicode": "^1.0.99" + "codebuff": "^1.0.119" } }, "node_modules/@types/diff": { @@ -79,6 +79,42 @@ "url": "https://github.com/sponsors/fb55" } }, + "node_modules/codebuff": { + "version": "1.0.119", + "resolved": "https://registry.npmjs.org/codebuff/-/codebuff-1.0.119.tgz", + "integrity": "sha512-AH/5VpUjHB3L6QwjGS1xXpCIPFxjxqmNAbLq0SWSUXU71Jke5gsrojifCegx42SiaY0nsaEyoEtsCjahRCsPZw==", + "license": "MIT", + "dependencies": { + "@types/diff": "5.2.1", + "axios": "1.7.4", + "cheerio": "1.0.0", + "diff": "5.2.0", + "env-cmd": "^10.1.0", + "ignore": "5.3.2", + "lodash": "*", + "nanoid": "5.0.7", + "picocolors": "1.1.0", + "systeminformation": "5.23.4", + "tree-sitter": "0.21.1", + "tree-sitter-c": "0.23.0", + "tree-sitter-c-sharp": "0.23.0", + "tree-sitter-cpp": "0.23.0", + "tree-sitter-go": "0.23.1", + "tree-sitter-java": "0.23.2", + "tree-sitter-javascript": "0.23.0", + "tree-sitter-php": "0.23.2", + "tree-sitter-python": "0.23.2", + "tree-sitter-ruby": "0.23.0", + "tree-sitter-rust": "0.23.0", + "tree-sitter-typescript": "0.23.0", + "ts-pattern": "5.3.1", + "ws": "8.18.0", + "zod": "3.23.8" + }, + "bin": { + "codebuff": "dist/index.js" + } + }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -354,42 +390,6 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "license": "MIT" }, - "node_modules/manicode": { - "version": "1.0.99", - "resolved": "https://registry.npmjs.org/manicode/-/manicode-1.0.99.tgz", - "integrity": "sha512-nPcFII4HyMUJJuCCVRqrt6o5ogyBcB6/SRFeUtyg2vUZyO26KMGD0v+2VHfc/L7IUSHoaAsd8OeNGWdkixg8tw==", - "license": "MIT", - "dependencies": { - "@types/diff": "5.2.1", - "axios": "1.7.4", - "cheerio": "1.0.0", - "diff": "5.2.0", - "env-cmd": "^10.1.0", - "ignore": "5.3.2", - "lodash": "*", - "nanoid": "5.0.7", - "picocolors": "1.1.0", - "systeminformation": "5.23.4", - "tree-sitter": "0.21.1", - "tree-sitter-c": "0.23.0", - "tree-sitter-c-sharp": "0.23.0", - "tree-sitter-cpp": "0.23.0", - "tree-sitter-go": "0.23.1", - "tree-sitter-java": "0.23.2", - "tree-sitter-javascript": "0.23.0", - "tree-sitter-php": "0.23.2", - "tree-sitter-python": "0.23.2", - "tree-sitter-ruby": "0.23.0", - "tree-sitter-rust": "0.23.0", - "tree-sitter-typescript": "0.23.0", - "ts-pattern": "5.3.1", - "ws": "8.18.0", - "zod": "3.23.8" - }, - "bin": { - "manicode": "dist/index.js" - } - }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", diff --git a/pkgs/by-name/ma/manicode/package.nix b/pkgs/by-name/co/codebuff/package.nix similarity index 54% rename from pkgs/by-name/ma/manicode/package.nix rename to pkgs/by-name/co/codebuff/package.nix index fc2903f2685f1..7d1a900111d3a 100644 --- a/pkgs/by-name/ma/manicode/package.nix +++ b/pkgs/by-name/co/codebuff/package.nix @@ -5,15 +5,15 @@ }: buildNpmPackage rec { - pname = "manicode"; - version = "1.0.99"; + pname = "codebuff"; + version = "1.0.119"; src = fetchzip { - url = "https://registry.npmjs.org/manicode/-/manicode-${version}.tgz"; - hash = "sha256-LVTh8yOfP92zGSdxLpThC+U9E8cBjoL0+iMQOldNO8A="; + url = "https://registry.npmjs.org/codebuff/-/codebuff-${version}.tgz"; + hash = "sha256-nIjNwvEhlgmfj3d0XEyMBWWNy+kh8iS4SEOZ9u8PWZQ="; }; - npmDepsHash = "sha256-MAm/FE8M6BBDZD5Fy2k6GcM5Qv35jNeUwHcemmbUj/A="; + npmDepsHash = "sha256-fO4rjRY31hOWuBnAeDKMSM5wbpPxLa93QQ3DPRCe/ig="; postPatch = '' cp ${./package-lock.json} package-lock.json @@ -25,10 +25,10 @@ buildNpmPackage rec { meta = { description = "Use natural language to edit your codebase and run commands from your terminal faster"; - homepage = "https://manicode.ai"; - downloadPage = "https://www.npmjs.com/package/manicode"; + homepage = "https://codebuff.ai"; + downloadPage = "https://www.npmjs.com/package/codebuff"; license = lib.licenses.mit; maintainers = [ lib.maintainers.malo ]; - mainProgram = "manicode"; + mainProgram = "codebuff"; }; } diff --git a/pkgs/by-name/ma/manicode/update.sh b/pkgs/by-name/co/codebuff/update.sh similarity index 63% rename from pkgs/by-name/ma/manicode/update.sh rename to pkgs/by-name/co/codebuff/update.sh index 448195ca20412..42d231f07b65d 100755 --- a/pkgs/by-name/ma/manicode/update.sh +++ b/pkgs/by-name/co/codebuff/update.sh @@ -3,13 +3,13 @@ set -euo pipefail -version=$(npm view manicode version) +version=$(npm view codebuff version) # Generate updated lock file cd "$(dirname "${BASH_SOURCE[0]}")" -npm i --package-lock-only manicode@$version +npm i --package-lock-only codebuff@"$version" rm -f package.json # Update version and hases cd - -nix-update manicode --version "$version" +nix-update codebuff --version "$version" diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index f5d8760db83b5..e87c5250c50f3 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -788,6 +788,7 @@ mapAliases { mariadb_110 = throw "mariadb_110 has been removed from nixpkgs, please switch to another version like mariadb_114"; # Added 2024-08-15 mariadb-client = hiPrio mariadb.client; #added 2019.07.28 maligned = throw "maligned was deprecated upstream in favor of x/tools/go/analysis/passes/fieldalignment"; # Added 20204-08-24 + manicode = throw "manicode has been renamed to codebuff"; # Added 2024-12-10 marwaita-manjaro = lib.warnOnInstantiate "marwaita-manjaro has been renamed to marwaita-teal" marwaita-teal; # Added 2024-07-08 marwaita-peppermint = lib.warnOnInstantiate "marwaita-peppermint has been renamed to marwaita-red" marwaita-red; # Added 2024-07-01 marwaita-ubuntu = lib.warnOnInstantiate "marwaita-ubuntu has been renamed to marwaita-orange" marwaita-orange; # Added 2024-07-08