From 3c3a21292be90c033590da3eaea1a1cf96c0c4f8 Mon Sep 17 00:00:00 2001 From: codgician <15964984+codgician@users.noreply.github.com> Date: Sat, 18 Apr 2026 10:43:02 +0800 Subject: [PATCH 1/2] agent-browser: 0.25.4 -> 0.26.0 --- pkgs/by-name/ag/agent-browser/package.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ag/agent-browser/package.nix b/pkgs/by-name/ag/agent-browser/package.nix index 3a47929d3143..2be3482f41c8 100644 --- a/pkgs/by-name/ag/agent-browser/package.nix +++ b/pkgs/by-name/ag/agent-browser/package.nix @@ -9,17 +9,18 @@ pnpmConfigHook, geist-font, nix-update-script, + which, writableTmpDirAsHomeHook, }: let - version = "0.25.4"; + version = "0.26.0"; src = fetchFromGitHub { owner = "vercel-labs"; repo = "agent-browser"; tag = "v${version}"; - hash = "sha256-2Dv+ZY9cvcz6EIpI+gkV9w5eqQzpAD2N+yf4dJrmdwg="; + hash = "sha256-q3UcFTB8OMOrfx5xcNPtBBAwOxoscwrjGg+y8tdETm0="; }; # The Rust CLI embeds the dashboard UI via RustEmbed at compile time. @@ -46,8 +47,8 @@ let pnpmWorkspaces = [ "dashboard" ]; - # Replace Google Fonts fetch with a local font from nixpkgs since - # the nix sandbox has no network access. + # Replace Google Fonts fetch with a local font from nixpkgs since the + # Nix sandbox has no network access. postPatch = '' substituteInPlace packages/dashboard/src/app/layout.tsx --replace-fail \ '{ Geist } from "next/font/google"' \ @@ -80,7 +81,7 @@ rustPlatform.buildRustPackage (finalAttrs: { sourceRoot = "${finalAttrs.src.name}/cli"; - cargoHash = "sha256-3vzVVHFo13ZLsbbXw7n9BE/YXBJwoxzhvfjuqOQwdfg="; + cargoHash = "sha256-ENIGFhZ+pXIZvEFUA0No3HpeHtxgJohMgx6F0wNpmO0="; # Place the pre-built dashboard where RustEmbed expects it postUnpack = '' @@ -88,7 +89,16 @@ rustPlatform.buildRustPackage (finalAttrs: { cp -r ${dashboard} source/packages/dashboard/out ''; - nativeCheckInputs = [ writableTmpDirAsHomeHook ]; + # `which_exists` spawns the external `which` binary at runtime to probe + # for optional tools; pin it to an absolute store path. + postPatch = '' + substituteInPlace src/doctor/helpers.rs src/install.rs --replace-fail \ + '"which"' '"${lib.getExe which}"' + ''; + + nativeCheckInputs = [ + writableTmpDirAsHomeHook + ]; __darwinAllowLocalNetworking = true; From a188eba4c634d7131839c57431287da469fabdf5 Mon Sep 17 00:00:00 2001 From: codgician <15964984+codgician@users.noreply.github.com> Date: Sun, 10 May 2026 13:35:02 +0800 Subject: [PATCH 2/2] agent-browser: 0.26.0 -> 0.27.0 --- pkgs/by-name/ag/agent-browser/package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ag/agent-browser/package.nix b/pkgs/by-name/ag/agent-browser/package.nix index 2be3482f41c8..327271bcb537 100644 --- a/pkgs/by-name/ag/agent-browser/package.nix +++ b/pkgs/by-name/ag/agent-browser/package.nix @@ -14,13 +14,13 @@ }: let - version = "0.26.0"; + version = "0.27.0"; src = fetchFromGitHub { owner = "vercel-labs"; repo = "agent-browser"; tag = "v${version}"; - hash = "sha256-q3UcFTB8OMOrfx5xcNPtBBAwOxoscwrjGg+y8tdETm0="; + hash = "sha256-c+AJAXMX88t+zzFsEAtFJDjDY5EbhmEyMRGFL4t63nE="; }; # The Rust CLI embeds the dashboard UI via RustEmbed at compile time. @@ -81,7 +81,7 @@ rustPlatform.buildRustPackage (finalAttrs: { sourceRoot = "${finalAttrs.src.name}/cli"; - cargoHash = "sha256-ENIGFhZ+pXIZvEFUA0No3HpeHtxgJohMgx6F0wNpmO0="; + cargoHash = "sha256-2u7yokHCxIVq16370Mg+n5kf03yUDYJmctFxN1fnaAA="; # Place the pre-built dashboard where RustEmbed expects it postUnpack = '' @@ -102,10 +102,11 @@ rustPlatform.buildRustPackage (finalAttrs: { __darwinAllowLocalNetworking = true; - # skills/ contains SKILL.md for tools like Claude Code + # The `skills` subcommand looks for `skills/` and `skill-data/` next to + # `bin/`, relative to the canonical exe path. See cli/src/skills.rs. postInstall = '' - mkdir -p $out/share/agent-browser - cp -r ../skills $out/share/agent-browser/ + cp -r ../skills $out/skills + cp -r ../skill-data $out/skill-data ''; passthru = {